Files
SaaS-lib/hx-ai-intelligent/src/store/item.ts

20 lines
336 B
TypeScript
Raw Normal View History

2024-05-21 16:42:16 +08:00
import { defineStore } from 'pinia';
export const items = defineStore({
id: 'items',
state() {
return {
list: [],
count: 10,
// 当前项目ID
projectId: 'HLlmTZp8',
// 站点ID
siteId: undefined,
};
2024-05-21 16:42:16 +08:00
},
getters: {
double: (state: any) => state.count * 2,
},
actions: {},
});