From 3c26f581cd77bed95cc56464f8424993f3c6b13a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 28 六月 2021 18:45:44 +0800 Subject: [PATCH] 2021-06-28 --- src/tabviews/subtabtable/index.jsx | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx index b985ce5..eac6532 100644 --- a/src/tabviews/subtabtable/index.jsx +++ b/src/tabviews/subtabtable/index.jsx @@ -333,18 +333,17 @@ searches = [...mainSearch, ...searches] } - let requireFields = [] - if (hasReqFields) { - requireFields = searches.filter(item => item.required && item.value === '') + let requireFields = searches.filter(item => item.required && item.value === '') + if (requireFields.length > 0) { + this.setState({ + loading: false + }) + return + } } - if (requireFields.length > 0) { - this.setState({ - loading: false - }) - return - } else if (window.GLOB.systemType === 'production' && setting.interType === 'custom' && !setting.proInterface) { + if (window.GLOB.systemType === 'production' && setting.interType === 'custom' && !setting.proInterface) { notification.warning({ top: 92, message: '鏈缃寮忕郴缁熷湴鍧�!', -- Gitblit v1.8.0