ソースを参照

修改-默认选项

YY 2 年 前
コミット
9f99e54147

+ 1 - 1
src/views/system/banner/detail.vue

@@ -80,7 +80,7 @@ export default {
           this.$set(this, `form`, res.data);
         }
       } else {
-        this.$set(this, `form`, {});
+        this.$set(this, `form`, { status: '0' });
       }
     },
     // 提交

+ 1 - 1
src/views/system/coupon/detail.vue

@@ -222,7 +222,7 @@ export default {
           this.$set(this, `form`, data);
         }
       } else {
-        this.$set(this, `form`, {});
+        this.$set(this, `form`, { status: '0' });
       }
     },
     // 店铺名称远程查询

+ 4 - 0
src/views/system/goodsTags/index.vue

@@ -121,6 +121,10 @@ export default {
       const level = this.levelList.length + 1;
       if (pid) this.form.pid = pid;
       this.form.level = level;
+      const obj = {
+        status: '0',
+      };
+      this.$set(this, 'form', obj);
     },
     async toData(row) {
       const id = _.get(row, '_id');

+ 1 - 1
src/views/system/indexModule/detail.vue

@@ -68,7 +68,7 @@ export default {
           this.$set(this, `form`, res.data);
         }
       } else {
-        this.$set(this, `form`, {});
+        this.$set(this, `form`, { status: '0' });
       }
     },
     // 提交