问题修复,增加点单智能推荐页面
This commit is contained in:
@@ -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 的数据读写都将持久化
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user