Browse Source

improve: 网络图片判断

From-wh 2 years atrás
parent
commit
77199de43e
1 changed files with 4 additions and 0 deletions
  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() {
+      if (!this.webImgUrl) {
+        this.$message.error('请先输入图片地址');
+        return;
+      }
       this.ruleForm.imgList.push({
         url: this.webImgUrl,
       });