30 lines
552 B
TypeScript
Raw Normal View History

2025-10-27 18:15:50 +08:00
//字典数据管理
import { defineStore } from 'pinia'
2025-11-03 18:07:12 +08:00
export const useComDictStore = defineStore('comDict', {
2025-10-27 18:15:50 +08:00
state: () => ({
2025-11-03 18:07:12 +08:00
dictData: {
XMGL: [],
ITEMCLASS: []
}
2025-10-27 18:15:50 +08:00
}),
actions: {
2025-11-03 18:07:12 +08:00
setDictData(data: any) {
this.dictData = { ...this.dictData, ...data }
2025-10-27 18:15:50 +08:00
}
}
})
2025-11-03 18:07:12 +08:00
//仪器数据
// export const useYQStore = defineStore('yqStore', {
// state: () => ({
// yqList: [] as any[], // 存储仪器列表
// }),
// actions: {
// setYQList(data: any[]) {
// this.yqList = data
// }
// }
// })