From 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 02 九月 2021 23:17:36 +0800 Subject: [PATCH] 2021-09-02 --- src/tabviews/verupmanage/actionList/index.jsx | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/tabviews/verupmanage/actionList/index.jsx b/src/tabviews/verupmanage/actionList/index.jsx index 6947633..23dd7ef 100644 --- a/src/tabviews/verupmanage/actionList/index.jsx +++ b/src/tabviews/verupmanage/actionList/index.jsx @@ -440,6 +440,7 @@ let param = params.shift() let _outParam = null let _localParam = null + let errRes = null if (widthNumber) { this.setState({ @@ -543,9 +544,11 @@ } }).then(res => { if (!res) return - + if (_localParam) { - + if (!res.status) { + errRes = res + } return Api.getLocalConfig(_localParam) } else if (res.status) { if (params.length === 0) { @@ -561,7 +564,7 @@ }).then(res => { if (!res) return - if (res.status) { + if (res.status && !errRes) { if (params.length === 0) { this.execSuccess(btn, res) _resolve() @@ -569,7 +572,7 @@ this.outerLoopRequest(params, btn, _resolve, widthNumber) } } else { - this.execError(res, btn) + this.execError(errRes || res, btn) _resolve() } }) -- Gitblit v1.8.0