From 7855b24840d80179e42fb42cfefdb499d3b7060a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 26 七月 2023 16:20:13 +0800 Subject: [PATCH] 2023-07-26 --- src/views/design/header/index.jsx | 7 ++++++- src/api/index.js | 36 ++++++++++++++++++------------------ 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index c30b55b..607c1ae 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 2155478..7704363 100644 --- a/src/views/design/header/index.jsx +++ b/src/views/design/header/index.jsx @@ -241,7 +241,12 @@ return } this.getfuncTime().then(res => { - Api.getSystemFuncs(res.createDate).then(result => { + let param = { + func: 's_get_func_base_sso', + update_date: res.createDate + } + // Api.getSystemFuncs(res.createDate).then(result => { + Api.getSystemConfig(param).then(result => { if (!result.status) { notification.error({ top: 92, -- Gitblit v1.8.0