From 044a4ec4ebe85f8c00e889fe3914de17a6ea1f28 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 17 十月 2024 18:18:01 +0800 Subject: [PATCH] 2024-10-17 --- src/components/header/index.jsx | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx index 8cf0ff8..3602f41 100644 --- a/src/components/header/index.jsx +++ b/src/components/header/index.jsx @@ -56,7 +56,9 @@ componentDidMount () { // 鑾峰彇绯荤粺鐨勭増鏈俊鎭紝寤舵椂鏌ヨ setTimeout(() => { - Api.getAppVersion() + if (!window.GLOB.$error) { + Api.getAppVersion() + } }, 1000) // sessionStorage 璺ㄩ〉闈㈠叡浜� @@ -117,7 +119,7 @@ logout = () => { const { dict } = this.state // 閫�鍑虹櫥褰� - let _this = this + let that = this confirm({ title: dict['logout_query'] || '鎮ㄧ‘瀹氳閫�鍑哄悧锛�', content: '', @@ -125,7 +127,7 @@ cancelText: dict['cancel'] || '鍙栨秷', onOk() { sessionStorage.clear() - _this.props.history.replace('/login') + that.props.history.replace('/login') window.location.reload() }, onCancel() {} @@ -290,7 +292,7 @@ if (PageParam.OpenType === 'outpage' && PageParam.linkUrl) { fstItem.OpenType = 'newpage' - fstItem.src = PageParam.linkUrl + fstItem.src = window.GLOB.systemType === 'production' && PageParam.linkProUrl ? PageParam.linkProUrl : PageParam.linkUrl if (/#\/iframe\//.test(fstItem.src)) { fstItem.src = fstItem.src.replace(/@loginuid@/ig, sessionStorage.getItem('LoginUID')) fstItem.type = 'iframe' @@ -346,7 +348,7 @@ if (trdItem.type === 'NewPage') { trdItem.OpenType = 'newpage' - trdItem.src = PageParam.url || '' + trdItem.src = window.GLOB.systemType === 'production' && PageParam.proUrl ? PageParam.proUrl : PageParam.url || '' if (/#\/iframe\//.test(trdItem.src)) { trdItem.src = trdItem.src.replace(/@loginuid@/ig, sessionStorage.getItem('LoginUID')) trdItem.type = 'iframe' -- Gitblit v1.8.0