From 00de28a67f8a9c2882d889f9b4a74fe6a09d762a Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 23 Sep 2021 14:21:27 +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