Jelajahi Sumber

颜色设置有问题

lrf 1 tahun lalu
induk
melakukan
458dce3a46
1 mengubah file dengan 11 tambahan dan 11 penghapusan
  1. 11 11
      src/views/new-plan/template.vue

+ 11 - 11
src/views/new-plan/template.vue

@@ -143,17 +143,17 @@ export default {
         return;
       }
       let colors = _.get(this.info, 'color', []);
-      if (colors && colors.length >= 8) {
-        this.$message.error('只能选择8个预存颜色');
-        return;
-      }
-      let res = colors.find(f => f == data);
-      if (res) {
-        this.$message.error('已选择当前颜色');
-        return;
-      }
-      colors.push(data);
-      this.$set(this.info, `color`, colors);
+      // if (colors && colors.length >= 8) {
+      //   this.$message.error('只能选择8个预存颜色');
+      //   return;
+      // }
+      // let res = colors.find(f => f == data);
+      // if (res) {
+      //   this.$message.error('已选择当前颜色');
+      //   return;
+      // }
+      // colors.push(data);
+      // this.$set(this.info, `color`, colors);
     },
     toClear() {
       this.info.color = [];