From c4a91976b8bd4bda0fba5086cd3ed66e66e77355 Mon Sep 17 00:00:00 2001
From: 15815213711 <a13118667520@163.com>
Date: 星期二, 29 七月 2025 14:35:49 +0800
Subject: [PATCH] 修改ID,修改加密方式

---
 ui/admin-ui3/src/utils/request.ts |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ui/admin-ui3/src/utils/request.ts b/ui/admin-ui3/src/utils/request.ts
index 8774138..535e172 100644
--- a/ui/admin-ui3/src/utils/request.ts
+++ b/ui/admin-ui3/src/utils/request.ts
@@ -104,7 +104,7 @@
                 type: 'error'
             })
             return Promise.reject(new Error(msg))
-        } else if (code !== 201 && code !== 200) {
+        } else if (code !== 201 && code !== 200&& code !== 204) {
             ElNotification.error({
                 title: msg
             })
@@ -164,9 +164,10 @@
     service.get('common/getDownloadName',{params}).then(async(data :any)=>{
         if (data.code === 200) {
             let newVar = hashMap.get(exportKey);
+            console.log(newVar);
             if (newVar){
                 if(data.data ==-1){
-                    ElMessage({message: '瀵煎嚭寮傚父', type: 'success'})
+                    //ElMessage({message: '瀵煎嚭寮傚父', type: 'success'})
                 }else{
                     let msg = data.data;
                     window.location.href = baseUrl + "/common/download?fileName=" + encodeURI(msg) + "&delete=" + true;
@@ -176,9 +177,9 @@
                 }
             }
         }else{
-                setTimeout(()=>{
-                    getDownloadName(exportKey);
-                },3000)
+            setTimeout(()=>{
+                getDownloadName(exportKey);
+            },1000)
         }
     })
 }

--
Gitblit v1.8.0