Sfoglia il codice sorgente

Merge branch 'v5.1.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.1.0dev

liaofei 2 anni fa
parent
commit
b7b743b57d
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      template/admin/src/components/uploadImg/index.vue

+ 4 - 0
template/admin/src/components/uploadImg/index.vue

@@ -190,6 +190,10 @@ export default {
     },
     },
 
 
     getImg() {
     getImg() {
+      if (!this.webImgUrl) {
+        this.$message.error('请先输入图片地址');
+        return;
+      }
       this.ruleForm.imgList.push({
       this.ruleForm.imgList.push({
         url: this.webImgUrl,
         url: this.webImgUrl,
       });
       });