From 94a6972bda7de520d0e2eb8b688f7b27ec9b0d90 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 3 Jan 2023 13:47:33 +0800 Subject: [PATCH] bug --- project/fengdu/app/AppWechatVote/components/List.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project/fengdu/app/AppWechatVote/components/List.vue b/project/fengdu/app/AppWechatVote/components/List.vue index 3e9f2d48..5b86d957 100644 --- a/project/fengdu/app/AppWechatVote/components/List.vue +++ b/project/fengdu/app/AppWechatVote/components/List.vue @@ -51,7 +51,7 @@ - +
@@ -100,6 +100,7 @@ return { accept: '.mp4', id: '', + isLoading: false, search: { current: 1, size: 10, @@ -188,6 +189,7 @@ let formData = new FormData() formData.append('file', file.file) formData.append('bizType', 1) + this.isLoading = true this.instance.post(`/admin/file/addVideo`, formData).then(res => { if (res && res.data) { let videoList = res.data[0].split(";") @@ -201,6 +203,10 @@ url: videoList[0] }] } + + this.isLoading = false + }).catch(() => { + this.isLoading = false }) } else { return this.$message.error("视频格式错误")