超市相关调整
This commit is contained in:
1 parent
f726bb11fb
commit
4a640f6279
15 files changed
+420
-39
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { defineStore } from "pinia"
|
||||
|
||||
export const usePurchase = defineStore("purchase", {
|
||||
state: () => ({
|
||||
smErpCgPlan: {
|
||||
id: "",
|
||||
disabled: false,
|
||||
},
|
||||
}),
|
||||
actions: {
|
||||
setSmErpCgPlanId(id: string) {
|
||||
this.smErpCgPlan.id = id
|
||||
},
|
||||
setSmErpCgPlanDisabled(disabled: boolean) {
|
||||
this.smErpCgPlan.disabled = disabled
|
||||
},
|
||||
},
|
||||
persist: {
|
||||
enabled: true,
|
||||
strategies: [
|
||||
{
|
||||
key: "smErpCgPlan", //自定义 Key值
|
||||
storage: localStorage, // 选择存储方式
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user