From a95a6f40a16ae8cbf2bd8b1d507182fb7d8e25c4 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 20 十二月 2023 10:02:29 +0800
Subject: [PATCH] 修改视频专网互联网
---
src/views/index.vue | 2 +-
src/components/FileUpload/index.vue | 15 ++++++++++++++-
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue
index edc462e..1613f02 100644
--- a/src/components/FileUpload/index.vue
+++ b/src/components/FileUpload/index.vue
@@ -158,8 +158,21 @@
const handleUploadError = () => {
proxy?.$modal.msgError("涓婁紶鏂囦欢澶辫触");
}
+const debounce = (fn: Function, delay = 1500) => {
+ let timer: number | null = null;
+ return (...args: any[]) => {
+ if (timer) {
+ clearTimeout(timer);
+ }
+ timer = setTimeout(() => {
+ fn(...args);
+ }, delay);
+ }
+}
const handleUploadProgress=(e: any) => {
- emit('closePopup','123123');
+ debounce(() =>{
+ emit('closePopup','123123');
+ },1500)
}
// 涓婁紶鎴愬姛鍥炶皟
const handleUploadSuccess = (res: any, file: UploadFile) => {
diff --git a/src/views/index.vue b/src/views/index.vue
index 429ffbb..07c0b53 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -361,7 +361,7 @@
clearInterval(state.mytime);
state.mytime = 0;
testtxt.value = row.password;
- testtxt.value = row.msg.slice(2);
+ // testtxt.value = row.msg.slice(2);
titleDownload.value = '鏌ョ湅鎻愬彇鐮�'
pasTxt.value = ''
visibleCode.value = true
--
Gitblit v1.8.0