From 6162d1cfeac4c4dc3b022eecfa67b6fa7e58495d Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 26 Sep 2021 12:00:05 +0800
Subject: [PATCH] 默认图片
---
src/components/attach/attach.vue | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/components/attach/attach.vue b/src/components/attach/attach.vue
index 360051b..70efcac 100644
--- a/src/components/attach/attach.vue
+++ b/src/components/attach/attach.vue
@@ -222,6 +222,11 @@
},
uploadAfter(res, done, loading, column) {
window.console.log(res.link);
+ var test = /^http:\/\/.*/;
+ if (!test.test(res.link)) {
+ this.$message.error("上传失败");
+ return;
+ }
this.onceLinks = res.link;
var haveit = null;
for (let k in this.saveIds) {
--
Gitblit v1.9.3