zhangjie 1 年之前
父節點
當前提交
753922cdd5
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/modules/admin/app-deploy/ModifyAppDeploy.vue

+ 9 - 2
src/modules/admin/app-deploy/ModifyAppDeploy.vue

@@ -154,7 +154,9 @@ export default {
       this.DEPLOY_CONTROL_KEYS.forEach((cont) => {
         const defaultVal = cont.type === "number" ? undefined : null;
         control[cont.code] =
-          controlVals[cont.code] || controlVals[cont.code] === 0
+          controlVals[cont.code] ||
+          controlVals[cont.code] === 0 ||
+          controlVals[cont.code] === false
             ? controlVals[cont.code]
             : defaultVal;
       });
@@ -165,7 +167,9 @@ export default {
       this.customOptions.forEach((cont) => {
         const defaultVal = cont.type === "number" ? undefined : null;
         custom[cont.key] =
-          customVals[cont.key] || customVals[cont.key] === 0
+          customVals[cont.key] ||
+          customVals[cont.key] === 0 ||
+          customVals[cont.key] === false
             ? customVals[cont.key]
             : defaultVal;
       });
@@ -174,6 +178,9 @@ export default {
       this.$refs.modalFormComp.clearValidate();
     },
     async visibleChange() {
+      if (this.instance.appId !== this.modalForm.appId) {
+        this.customOptions = [];
+      }
       await this.getCustomParams();
       this.initData(this.instance);
     },