From 3513c423b2fea49ad4673a76b16f5e70203757be Mon Sep 17 00:00:00 2001 From: "X.Mo" Date: Tue, 2 Apr 2024 14:47:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=90=8E=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E7=BF=BB=E8=AF=91=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ma-form/js/networkRequest.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ma-form/js/networkRequest.js b/src/components/ma-form/js/networkRequest.js index 669912b4..5a7f8e76 100644 --- a/src/components/ma-form/js/networkRequest.js +++ b/src/components/ma-form/js/networkRequest.js @@ -109,12 +109,12 @@ export const loadDict = async (dictList, item, sourceList = [], maFormObject = { } else { const dictData = tool.local.get('dictData') ?? {} if (item.dict.cache && dictData[dataIndex]) { - dictList[dataIndex] = dictData[dataIndex] + dictList[dataIndex] = handlerDictProps(item, dictData[dataIndex]) } else { const { data } = await requestDict(item.dict.remote, 'POST', {}, requestData) dictList[dataIndex] = handlerDictProps(item, data) if (item.dict.cache) { - dictData[dataIndex] = dictList[dataIndex] + dictData[dataIndex] = data tool.local.set('dictData', dictData) } } @@ -138,12 +138,12 @@ export const loadDict = async (dictList, item, sourceList = [], maFormObject = { } else { const dictData = tool.local.get('dictData') ?? {} if (item.dict.cache && dictData[dataIndex]) { - dictList[dataIndex] = dictData[dataIndex] + dictList[dataIndex] = handlerDictProps(item, dictData[dataIndex]) } else { const { data } = await requestDict(item.dict.url, item.dict.method || 'GET', item.dict.params || {}, item.dict.body || {}) dictList[dataIndex] = handlerDictProps(item, data) if (item.dict.cache) { - dictData[dataIndex] = dictList[dataIndex] + dictData[dataIndex] = data tool.local.set('dictData', dictData) } }