From e59a47ca30c6e94f40ef34ffdcb76bdaaef79f9c Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Fri, 21 Jul 2023 10:48:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AC=A6=E5=8F=B7=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/asyncComponent/index.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/components/asyncComponent/index.vue b/frontend/src/components/asyncComponent/index.vue index d916de5a2c..715c7507dc 100644 --- a/frontend/src/components/asyncComponent/index.vue +++ b/frontend/src/components/asyncComponent/index.vue @@ -54,15 +54,13 @@ export default { // window.SyncComponentCache[this.url] = Axios.get(this.url) res = await window.SyncComponentCache[this.url] } else { - this.mode = await window.SyncComponentCache[this.url] - return + res = await window.SyncComponentCache[this.url] } if (res) { const Fn = Function const dynamicCode = res.data || res const component = new Fn(`return ${dynamicCode}`)() this.mode = component.default || component - window.SyncComponentCache[this.url] = this.mode } } }