|
@@ -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 = [];
|