From b28b2a89838cf0eb8c7c2d7ec605d79610309af9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 15 六月 2023 17:46:11 +0800 Subject: [PATCH] 2023-06-15 --- src/views/mobdesign/index.jsx | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index 9fca5e9..7c8d241 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -81,6 +81,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('editMenuType') @@ -90,6 +97,9 @@ } if (memberLevel < 30) return + + window.GLOB.developing = true + try { let param = JSON.parse(window.decodeURIComponent(window.atob(this.props.match.params.param))) @@ -1440,8 +1450,6 @@ menuloading: true }) - window.GLOB.saving = true - setTimeout(() => { let _pass = this.verifyConfig(config) @@ -1699,8 +1707,6 @@ menuloading: false }) - window.GLOB.saving = false - if (!res) return if (res.status) { @@ -1735,8 +1741,6 @@ this.setState({ menuloading: false }) - - window.GLOB.saving = false if (!error) { notification.warning({ -- Gitblit v1.8.0