From aed1ff699140de60131bf9cc1332c98063c66721 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 03 七月 2020 09:14:51 +0800 Subject: [PATCH] 2020-07-03 --- src/components/header/index.jsx | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx index 04b6cb3..d373b64 100644 --- a/src/components/header/index.jsx +++ b/src/components/header/index.jsx @@ -159,7 +159,7 @@ if (sessionStorage.getItem('isEditState') === 'true') { // 缂栬緫鐘舵�佹椂锛岃幏鍙栦竴绾ц彍鍗曪紝澧炲姞鍙傛暟debug _param.debug = 'Y' } - if (options.sysType !== 'cloud' && window.GLOB.systemType !== 'official') { + if (options.sysType !== 'cloud' && window.GLOB.systemType !== 'production') { _param.linkurl = window.GLOB.linkurl } @@ -245,7 +245,7 @@ // 鑾峰彇涓昏彍鍗曞弬鏁� let promiseMenu = new Promise(resolve => { let _param = {func: 'sPC_Get_MainMenu', systemType: options.sysType} - if (options.sysType !== 'cloud' && window.GLOB.systemType !== 'official') { + if (options.sysType !== 'cloud' && window.GLOB.systemType !== 'production') { _param.linkurl = window.GLOB.linkurl } @@ -347,7 +347,7 @@ _userName = sessionStorage.getItem('CloudUserName') } - if (window.GLOB.systemType === 'official' && state) { + if (window.GLOB.systemType === 'production' && state) { this.props.resetEditLevel('HS') this.props.modifyMainMenu({ MenuID: 'systemManageView' @@ -360,7 +360,7 @@ this.props.resetEditState(state) return - } else if (window.GLOB.systemType === 'official' && !state) { + } else if (window.GLOB.systemType === 'production' && !state) { this.props.resetEditLevel(false) this.props.modifyMainMenu(menulist[0] || '') @@ -383,7 +383,7 @@ this.props.resetEditState(state) } - if (state && this.props.sysRoles.length === 0 && this.props.permFuncField.length === 0 && window.GLOB.systemType !== 'official') { + if (state && this.props.sysRoles.length === 0 && this.props.permFuncField.length === 0 && window.GLOB.systemType !== 'production') { Api.getSystemConfig({func: 'sPC_Get_Roles_sModular'}).then(res => { if (res.status) { let _permFuncField = [] @@ -434,7 +434,7 @@ _avatar = Utils.getrealurl(res.icon) // 澶村儚 } - if (window.GLOB.systemType === 'official') { + if (window.GLOB.systemType === 'production') { this.props.resetEditLevel('HS') this.props.modifyMainMenu({ MenuID: 'systemManageView' @@ -495,7 +495,7 @@ * @description 閫�鍑虹鐞嗙晫闈㈣彍鍗� */ exitManage = () => { - if (window.GLOB.systemType === 'official') { // 姝e紡绯荤粺鐗堟湰鍗囩骇鍚庯紝椤甸潰鍒锋柊 + if (window.GLOB.systemType === 'production') { // 姝e紡绯荤粺鐗堟湰鍗囩骇鍚庯紝椤甸潰鍒锋柊 window.location.reload() return } @@ -678,7 +678,7 @@ {this.props.editLevel === 'HS' ? <Button className="level4-close" type="primary" onClick={this.exitManage}>閫�鍑�</Button> : null} {/* 杩涘叆缂栬緫鎸夐挳 */} {this.props.editState && !this.props.editLevel ? <Icon onClick={this.enterEdit} className="edit-check" type="edit" /> : null} - {/* {this.props.editState && !this.props.editLevel && options.sysType === 'local' && window.GLOB.systemType !== 'official' ? + {/* {this.props.editState && !this.props.editLevel && options.sysType === 'local' && window.GLOB.systemType !== 'production' ? <a href="#/mobmanage" target="_blank" className="mobile" type="edit"> 搴旂敤绠$悊 <Icon type="arrow-right" /></a> : null } */} {/* 缂栬緫鑿滃崟 */} -- Gitblit v1.8.0