From a26f13ee999e84fc49cc3545e6e5d3daf9c6c41f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 07 十月 2024 00:15:39 +0800 Subject: [PATCH] 2024-10-07 --- src/api/index.js | 2 -- src/tabviews/zshare/actionList/normalbutton/index.jsx | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 141a043..e508205 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1065,8 +1065,6 @@ * @description 娓呯┖鍚庣缂撳瓨 */ cacheInterface (param) { - param.userid = sessionStorage.getItem('UserID') || '' - param.LoginUID = sessionStorage.getItem('LoginUID') || '' param.appkey = window.GLOB.appkey || '' let url = '/webapi/excache' diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx index eb53b14..af7d1e3 100644 --- a/src/tabviews/zshare/actionList/normalbutton/index.jsx +++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx @@ -2771,7 +2771,7 @@ clearBackCache = () => { if (!window.GLOB.backend) return - Api.cacheInterface({}).then(res => { + Api.cacheInterface({userid: sessionStorage.getItem('UserID') || '', LoginUID: sessionStorage.getItem('LoginUID') || ''}).then(res => { if (!res.status) { notification.warning({ top: 92, @@ -2779,7 +2779,11 @@ duration: 5 }) } else if (window.GLOB.localSystemApi) { - Api.cacheInterface({rduri: window.GLOB.localSystemApi.replace('dostars', 'excache')}).then(result => { + Api.cacheInterface({ + userid: sessionStorage.getItem('LocalUserID') || sessionStorage.getItem('UserID') || '', + LoginUID: sessionStorage.getItem('LocalLoginUID') || sessionStorage.getItem('LoginUID') || '', + rduri: window.GLOB.localSystemApi.replace('dostars', 'excache') + }).then(result => { if (!result.status) { notification.warning({ top: 92, -- Gitblit v1.8.0