From 2f0f68b4afb25992c61e1e4f4651392dc884113e Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 11 Nov 2021 14:13:48 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E6=8F=92=E4=BB=B6=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/AsyncComponent/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/AsyncComponent/index.vue b/frontend/src/components/AsyncComponent/index.vue index b115381fda..28e60641ed 100644 --- a/frontend/src/components/AsyncComponent/index.vue +++ b/frontend/src/components/AsyncComponent/index.vue @@ -45,10 +45,13 @@ export default { } else { res = await window.SyncComponentCache[this.url] } - if (res && res.data) { + + const Fn = Function + this.mode = new Fn(`return ${res.data || res}`)() + /* if (res && res.data) { const Fn = Function this.mode = new Fn(`return ${res.data || res}`)() - } + } */ } } },