添加主机身份页面.
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { CacheState } from './types';
|
||||
|
||||
export type CacheType = 'menus' | 'roles' | 'tags'
|
||||
export type CacheType = 'menus' | 'roles' | 'tags' | 'hostKeys'
|
||||
|
||||
const useCacheStore = defineStore('cache', {
|
||||
state: (): CacheState => ({
|
||||
menus: [],
|
||||
roles: [],
|
||||
tags: []
|
||||
tags: [],
|
||||
hostKeys: [],
|
||||
}),
|
||||
|
||||
getters: {},
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
import { MenuQueryResponse } from '@/api/system/menu';
|
||||
import { RoleQueryResponse } from '@/api/user/role';
|
||||
import { TagResponse } from '@/api/meta/tag';
|
||||
import { TagQueryResponse } from '@/api/meta/tag';
|
||||
import { HostKeyQueryResponse } from '@/api/asset/host-key';
|
||||
|
||||
export interface CacheState {
|
||||
menus: MenuQueryResponse[];
|
||||
roles: RoleQueryResponse[];
|
||||
tags: TagResponse[];
|
||||
tags: TagQueryResponse[];
|
||||
hostKeys: HostKeyQueryResponse[];
|
||||
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user