瀏覽代碼

improve: 网络图片判断

From-wh 2 年之前
父節點
當前提交
77199de43e
共有 1 個文件被更改,包括 4 次插入0 次删除
  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,
       });