From fcdfdc9670866fecd2d239d75a6ec28391175e9f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 10 四月 2025 11:13:51 +0800 Subject: [PATCH] 2025-04-10 --- src/api/index.js | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index da8093a..3c611c1 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 } @@ -1026,6 +1032,14 @@ param.data_md5 = param.data_md5 || '' param.time_limit = param.time_limit || 0 + param.data.forEach(item => { + item.exps.forEach(cell => { + if (typeof(cell.value) === 'number') { + cell.value = cell.value + '' + } + }) + }) + param = this.encryptParam(param) return new Promise((resolve) => { -- Gitblit v1.8.0