diff --git a/template/admin/src/components/uploadImg/index.vue b/template/admin/src/components/uploadImg/index.vue index d8838fcff..cbbc3008f 100644 --- a/template/admin/src/components/uploadImg/index.vue +++ b/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, });