From 78db2a9b5e94b8a95f0735596e38410c24f990ea Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 08 四月 2025 17:46:43 +0800 Subject: [PATCH] Merge branch 'develop' --- src/api/index.js | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index da8093a..9ef82f6 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -48,10 +48,12 @@ okText: '鐭ラ亾浜�', onOk: () => { window.GLOB.$error = false - sessionStorage.clear() - if (!!(window.history && window.history.pushState)) { - window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') - window.location.reload() + if (!/#\/login/.test(window.location.href)) { + sessionStorage.clear() + if (!!(window.history && window.history.pushState)) { + window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') + window.location.reload() + } } } }) @@ -59,6 +61,10 @@ return Promise.reject(response.data) } else { + if (response.data.ErrCode === 'E' && /姝婚攣/.test(response.data.message)) { + response.data.message = '鏈嶅姟鍣ㄧ箒蹇欙紝璇风◢鍚庨噸璇曪紒' + response.data.ErrMesg = '鏈嶅姟鍣ㄧ箒蹇欙紝璇风◢鍚庨噸璇曪紒' + } if (response.config.requestId) { response.data.$requestId = response.config.requestId } -- Gitblit v1.8.0