From 4a25bd9ba57cf9b9985d93e85fab1e065a0911bc Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 28 Sep 2023 14:22:21 +0800
Subject: [PATCH] fix:立行立改

---
 src/components/UploadExcel/index.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/components/UploadExcel/index.vue b/src/components/UploadExcel/index.vue
index 39f111c..ff357cd 100644
--- a/src/components/UploadExcel/index.vue
+++ b/src/components/UploadExcel/index.vue
@@ -48,7 +48,7 @@
         </span>
       </div>
     </el-upload>
-    <el-dialog :visible.sync="dialogVisible" width="600px" :modal-append-to-body="false" :destroy-on-close="true" @close="handleCancel">
+    <el-dialog :visible.sync="dialogVisible" width="600px" append-to-body :modal-append-to-body="false" :destroy-on-close="true" @close="handleCancel">
       <div style="text-align: center;">
         <img
           v-if="dialogType == 1"
@@ -101,11 +101,15 @@
 
   methods: {
     handleCancel(e) {
-      if (this.$refs.video) {
-        this.$refs.video.pause()
-      }
-      this.dialogImageUrl = ''
       this.dialogVisible = false
+
+      setTimeout(() => {
+        if (this.$refs.video) {
+          this.$refs.video.pause()
+        }
+
+        this.dialogImageUrl = ''
+      }, 200)
     },
     // ���������
     before_upload(file) {

--
Gitblit v1.8.0