From e250f7a3bb1f9ce2900c5d538fae9d1f73084715 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 14 六月 2023 12:19:54 +0800 Subject: [PATCH] 2023-06-14 --- src/views/pcdesign/index.jsx | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx index 2badd14..a8dcca3 100644 --- a/src/views/pcdesign/index.jsx +++ b/src/views/pcdesign/index.jsx @@ -76,6 +76,13 @@ } UNSAFE_componentWillMount() { + if (sessionStorage.getItem('devError') === 'true') { + sessionStorage.clear() + window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') + window.location.reload() + return + } + if (!sessionStorage.getItem('UserID')) { sessionStorage.removeItem('isEditState') sessionStorage.removeItem('appType') @@ -92,6 +99,7 @@ window.GLOB.CacheIndependent = new Map() window.GLOB.urlFields = [] // url鍙橀噺 window.GLOB.customMenu = null // 淇濆瓨鑿滃崟淇℃伅 + window.GLOB.developing = true try { let param = JSON.parse(window.decodeURIComponent(window.atob(this.props.match.params.param))) @@ -1178,8 +1186,6 @@ menuloading: true }) - window.GLOB.saving = true - setTimeout(() => { let _pass = this.verifyConfig(config) @@ -1419,8 +1425,6 @@ menuloading: false }) - window.GLOB.saving = false - if (!res) return if (res.status) { @@ -1456,8 +1460,6 @@ menuloading: false }) - window.GLOB.saving = false - if (!error) { notification.warning({ top: 92, -- Gitblit v1.8.0