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 } } }