Explorar o código

improve: 网络图片判断

From-wh %!s(int64=2) %!d(string=hai) anos
pai
achega
77199de43e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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,
       });