From c2580fb8de3bdaabb4179b0ce0fcd2fbac802441 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 01 三月 2023 00:49:14 +0800 Subject: [PATCH] 2023-03-01 --- src/views/menudesign/index.jsx | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/views/menudesign/index.jsx b/src/views/menudesign/index.jsx index 93dd0b6..ce3e6e5 100644 --- a/src/views/menudesign/index.jsx +++ b/src/views/menudesign/index.jsx @@ -876,7 +876,7 @@ } else { resolve(result) } - }) + }, this.netError) }) } else { resolve({status: true}) @@ -909,7 +909,7 @@ } return Api.getSystemConfig(_param) } - }).then(res => { // 椤甸潰鎸夐挳鍏崇郴淇濆瓨 + }, this.netError).then(res => { // 椤甸潰鎸夐挳鍏崇郴淇濆瓨 if (!res || !res.status) return res this.setState({ @@ -923,7 +923,7 @@ status: true } } - }).then(res => { + }, this.netError).then(res => { this.setState({ menuloading: false }) @@ -944,10 +944,23 @@ duration: 5 }) } - }) + }, this.netError) }, 300 + (+sessionStorage.getItem('mkDelay'))) } + netError = (error) => { + this.setState({ + menuloading: false + }) + if (!error) { + notification.warning({ + top: 92, + message: '淇濆瓨澶辫触锛岃妫�鏌ョ綉缁滄槸鍚︽甯搞��', + duration: 5 + }) + } + } + getRoleFields = () => { if (sessionStorage.getItem('sysRoles')) return -- Gitblit v1.8.0