From 8f956f8ac5f2fd6fe94b65d4c6b6c4fc4c56344a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 12 九月 2024 21:59:14 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/api/index.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 4a1a60d..141a043 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -698,6 +698,12 @@
         }
       }
 
+      if (param.$type) {
+        url += '/' + param.$type
+      }
+
+      delete param.$type
+
       param = this.encryptParam(param)
 
       return new Promise((resolve) => {
@@ -716,7 +722,7 @@
             res.ErrCode = '-2'
             MKEmitter.emit('reloadTabs')
           }
-          if (res.status) {
+          if (res.status && id) {
             window.GLOB.CacheMap.set(id, res)
           }
           resolve(res)
@@ -1003,6 +1009,12 @@
         }
       }
 
+      if (param.$type) {
+        url += '/' + param.$type
+      }
+
+      delete param.$type
+
       param.username = sessionStorage.getItem('User_Name') || ''
       param.fullname = sessionStorage.getItem('Full_Name') || ''
       param.s_debug = window.GLOB.debugger ? 'Y' : ''

--
Gitblit v1.8.0