问题修复
This commit is contained in:
@@ -122,6 +122,7 @@ const loadFinish = ref(false);
|
||||
const form = reactive({
|
||||
isEnable: 0,
|
||||
useType: "all",
|
||||
shopIdList:[]
|
||||
});
|
||||
|
||||
const actions = [
|
||||
@@ -222,7 +223,7 @@ const handleConfirm = async () => {
|
||||
}
|
||||
|
||||
couponRedemptionApi.enable({
|
||||
shopIdList: form.shopIdList,
|
||||
shopIdList: form.shopIdList||[],
|
||||
useType: form.useType,
|
||||
isEnable: form.isEnable,
|
||||
});
|
||||
@@ -281,6 +282,7 @@ watch(
|
||||
|
||||
async function getConfig() {
|
||||
couponRedemptionApi.status().then((res) => {
|
||||
res.shopIdList = res.shopIdList || [];
|
||||
Object.assign(form, res);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user