微调
This commit is contained in:
@@ -7,7 +7,8 @@ export const useCheckStore = defineStore("check", {
|
||||
id: CHECK_STORE_KEY,
|
||||
|
||||
state: () => ({
|
||||
devices: Array<CheckData.Device>()
|
||||
devices: Array<CheckData.Device>(),
|
||||
planId: String(""),
|
||||
}),
|
||||
|
||||
getters: {},
|
||||
@@ -19,6 +20,10 @@ export const useCheckStore = defineStore("check", {
|
||||
|
||||
clearDevices() {
|
||||
this.devices = [];
|
||||
},
|
||||
|
||||
setPlanId(planId: string) {
|
||||
this.planId = planId
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user