问题修复,增加点单智能推荐页面

This commit is contained in:
2025-11-20 15:55:50 +08:00
parent 8fa21b3404
commit bb4c2676e7
11 changed files with 201 additions and 40 deletions

View File

@@ -69,13 +69,16 @@ export const useNewUserDiscountStore = defineStore("newUserDiscount", {
this.config = data;
return this.config;
},
async editConfig(data,isAutoResrefresh = true) {
const res = await consumeDiscountApi.editConfig({ ...this.config, ...data });
if(isAutoResrefresh){
async editConfig(data, isAutoResrefresh = true) {
const res = await consumeDiscountApi.editConfig({
...this.config,
...data,
});
if (isAutoResrefresh) {
this.getConfig();
}
return res;
},
},
unistorage: true, // 开启后对 state 的数据读写都将持久化
});
});