From 61d7445ab27d1f80ef0319a44e5d564ff8061ed4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 28 十月 2021 12:55:52 +0800 Subject: [PATCH] 2021-10-28 --- src/tabviews/zshare/mutilform/index.jsx | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index c855e56..373b36e 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -379,11 +379,12 @@ * @description 鑾峰彇涓嬫媺琛ㄥ崟閫夐」淇℃伅 */ improveActionForm = (deForms) => { - const { BID, menuType } = this.props + const { BID, menuType, action } = this.props let deffers = [] let mainItems = [] // 浜戠鎴栧崟鐐规暟鎹� let localItems = [] // 鏈湴鏁版嵁 + let cache = action.setting.cache !== 'false' deForms.forEach(item => { if (item.database === 'sso') { @@ -419,7 +420,7 @@ deffers.push( new Promise(resolve => { - Api.getSystemCacheConfig(param).then(res => { + Api.getSystemCacheConfig(param, cache).then(res => { if (!res.status) { notification.warning({ top: 92, @@ -461,7 +462,7 @@ deffers.push( new Promise(resolve => { - Api.getSystemCacheConfig(mainparam).then(res => { + Api.getSystemCacheConfig(mainparam, cache).then(res => { if (!res.status) { notification.warning({ top: 92, @@ -491,6 +492,8 @@ * @description 娴嬭瘯绯荤粺鑾峰彇涓嬫媺琛ㄥ崟閫夐」淇℃伅 */ improveSimpleActionForm = (deForms) => { + let cache = this.props.action.setting.cache !== 'false' + let deffers = deForms.map((form, index) => { let param = { func: 'sPC_Get_SelectedList', @@ -506,7 +509,7 @@ return ( new Promise(resolve => { setTimeout(() => { - Api.getSystemCacheConfig(param).then(res => { + Api.getSystemCacheConfig(param, cache).then(res => { if (!res.status) { notification.warning({ top: 92, -- Gitblit v1.8.0