|
@@ -129,7 +129,7 @@ export default {
|
|
this.imgList.push(fileList);
|
|
this.imgList.push(fileList);
|
|
},
|
|
},
|
|
submitUpload() {
|
|
submitUpload() {
|
|
- if (this.imgList == 0) {
|
|
|
|
|
|
+ if (this.imgList.length == 0) {
|
|
this.$error('未选择图片,请先选择图片');
|
|
this.$error('未选择图片,请先选择图片');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|