From a3fe61cd234be010f4a9b9e4ac9bfd51b984b360 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 26 七月 2023 16:22:22 +0800 Subject: [PATCH] 2023-07-26 --- src/views/design/header/index.jsx | 7 +------ src/api/index.js | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 607c1ae..c30b55b 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -485,26 +485,26 @@ /** * @description 鑾峰彇鎴栦慨鏀圭郴缁熼厤缃紝澧炲姞appkey */ - // getSystemFuncs (time) { - // let param = { - // func: 's_get_func_base_sso', - // update_date: time, - // userid: sessionStorage.getItem('UserID') || '', - // lang: sessionStorage.getItem('lang') || '', - // SessionUid: localStorage.getItem('SessionUid') || '', - // LoginUID: sessionStorage.getItem('LoginUID') || '', - // appkey: window.GLOB.appkey - // } + getSystemFuncs (time) { + let param = { + func: 's_get_func_base_sso', + update_date: time, + userid: sessionStorage.getItem('UserID') || '', + lang: sessionStorage.getItem('lang') || '', + SessionUid: localStorage.getItem('SessionUid') || '', + LoginUID: sessionStorage.getItem('LoginUID') || '', + appkey: window.GLOB.appkey + } - // let url = window.GLOB.mainSystemApi || '/webapi/dostars' - // param = this.encryptParam(param) + let url = window.GLOB.mainSystemApi || '/webapi/dostars' + param = this.encryptParam(param) - // return axios({ - // url: `${url}/${param.func}`, - // method: 'post', - // data: JSON.stringify(param) - // }) - // } + return axios({ + url: `${url}/${param.func}`, + method: 'post', + data: JSON.stringify(param) + }) + } /** * @description 鑾峰彇鎴栦慨鏀圭郴缁熼厤缃紝澧炲姞appkey diff --git a/src/views/design/header/index.jsx b/src/views/design/header/index.jsx index 7704363..2155478 100644 --- a/src/views/design/header/index.jsx +++ b/src/views/design/header/index.jsx @@ -241,12 +241,7 @@ return } this.getfuncTime().then(res => { - let param = { - func: 's_get_func_base_sso', - update_date: res.createDate - } - // Api.getSystemFuncs(res.createDate).then(result => { - Api.getSystemConfig(param).then(result => { + Api.getSystemFuncs(res.createDate).then(result => { if (!result.status) { notification.error({ top: 92, -- Gitblit v1.8.0