From 7af24e2656ddae37f03f1ae62b439f1bbf6a9dc4 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 06 六月 2025 18:28:57 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/2.0.1' into 2.0.1 --- company/src/components/common/upload.vue | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/company/src/components/common/upload.vue b/company/src/components/common/upload.vue index b15d398..a0fcf08 100644 --- a/company/src/components/common/upload.vue +++ b/company/src/components/common/upload.vue @@ -57,6 +57,12 @@ }, getFile (e) { if (e.target && e.target.files.length > 0) { + const loading = this.$loading({ + lock: true, + text: '涓婁紶涓紝璇风瓑寰�', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); this.$emit('loading') const formdate = new FormData() formdate.append('file', e.target.files[0]) @@ -69,6 +75,7 @@ this.$message.error(e) }) .finally(() => { + loading.close(); this.$refs.file.value = null }) } -- Gitblit v1.9.3