From 9855c86aa6b84bb1c6c366cf68e0dee45402fe6f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 27 八月 2023 17:41:12 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/views/systemproc/proc/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/systemproc/proc/index.jsx b/src/views/systemproc/proc/index.jsx index 73dd12e..62ce63a 100644 --- a/src/views/systemproc/proc/index.jsx +++ b/src/views/systemproc/proc/index.jsx @@ -29,7 +29,7 @@ if (sessionStorage.getItem('permFuncField')) { this.setState({permFuncs: JSON.parse(sessionStorage.getItem('permFuncField'))}) - } else { + } else if (sessionStorage.getItem('UserID')) { Api.getCloudConfig({func: 'sPC_Get_Roles_sModular'}).then(res => { if (res.status) { let _permFuncs = [] @@ -58,7 +58,7 @@ }) } - if (this.props.func) { + if (this.props.func && sessionStorage.getItem('UserID')) { setTimeout(() => { this.search(this.props.func) }, 500) -- Gitblit v1.8.0