谐波监测点

This commit is contained in:
仲么了
2024-02-28 14:19:56 +08:00
parent 0d166eb582
commit e488943bbd
24 changed files with 2620 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
import { reactive } from 'vue'
import { defineStore } from 'pinia'
interface MonitoringPoint {
lineId: string
lineName: string
}
export const useMonitoringPoint = defineStore(
'monitoringPoint',
() => {
const state: MonitoringPoint = reactive({
lineId: '',
lineName: '',
})
const setValue = (key: keyof MonitoringPoint, val: any) => {
state[key] = val
}
return { state, setValue }
},
{
persist: true
}
)