添加卡片列表模板.

This commit is contained in:
lijiahangmax
2023-10-07 22:17:01 +08:00
parent 6d37fb51cf
commit da6e1e2eee
10 changed files with 60 additions and 51 deletions

View File

@@ -1,13 +1,13 @@
import { defineStore } from 'pinia';
import { CacheState } from './types';
export type CacheType = 'menus' | 'roles' | 'tags' | 'hostKeys' | 'hostIdentities'
export type CacheType = 'menus' | 'roles' | 'hostTags' | 'hostKeys' | 'hostIdentities'
export default defineStore('cache', {
state: (): CacheState => ({
menus: [],
roles: [],
tags: [],
hostTags: [],
hostKeys: [],
hostIdentities: [],
}),

View File

@@ -7,7 +7,7 @@ import { HostIdentityQueryResponse } from '@/api/asset/host-identity';
export interface CacheState {
menus: MenuQueryResponse[];
roles: RoleQueryResponse[];
tags: TagQueryResponse[];
hostTags: TagQueryResponse[];
hostKeys: HostKeyQueryResponse[];
hostIdentities: HostIdentityQueryResponse[];