fix:投放数量开关是否开启
This commit is contained in:
2
components.d.ts
vendored
2
components.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
// @ts-nocheck
|
||||
// Generated by unplugin-vue-components
|
||||
// Read more: https://github.com/vuejs/core/pull/3399
|
||||
export {}
|
||||
export {};
|
||||
|
||||
/* prettier-ignore */
|
||||
declare module 'vue' {
|
||||
|
||||
@@ -531,9 +531,14 @@ const saveSetting = (parentKey, childKeys, type) => {
|
||||
});
|
||||
}
|
||||
let publish_number = Number(questionInfo.value.survey['publish_number']);
|
||||
if (publish_number == '' || publish_number === 0) {
|
||||
showFailToast('投放数量需要大于1');
|
||||
return false;
|
||||
if (questionInfo.value.survey.is_publish_number === 1) {
|
||||
if (publish_number == '' || publish_number === 0) {
|
||||
showFailToast('投放数量需要大于1');
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// delete query['is_publish_number'];
|
||||
delete query['publish_number'];
|
||||
}
|
||||
saveSettings({
|
||||
sn: route.query.sn,
|
||||
|
||||
Reference in New Issue
Block a user