超市审批相关编辑方案和按钮权限修改

This commit is contained in:
weiwei committed 2025-03-31 11:09:15 +08:00
1 parent 1b0c1d8b0a
commit 217968cd63
16 files changed
+289 -375

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
import { defineStore } from "pinia"
export const usePurchase = defineStore("purchase", {
state: () => ({
purchaseFormState: {
id: "",
disabled: false,
},
}),
actions: {
setPurchaseFormId(id: string) {
this.purchaseFormState.id = id
},
setPurchaseFormDisabled(disabled: boolean) {
this.purchaseFormState.disabled = disabled
},
},
persist: {
enabled: true,
strategies: [
{
key: "purchaseFormState", //自定义 Key值
storage: localStorage, // 选择存储方式
},
],
},
})