From 5d051359bd67c7cc6edc18c1f35e6cab0853ab08 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Mon, 24 Oct 2022 14:38:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/AsyncComponent/index.vue b/frontend/src/components/AsyncComponent/index.vue index 485e46a61e..553188bcd8 100644 --- a/frontend/src/components/AsyncComponent/index.vue +++ b/frontend/src/components/AsyncComponent/index.vue @@ -52,7 +52,8 @@ export default { if (res) { const Fn = Function const dynamicCode = res.data || res - this.mode = new Fn(`return ${dynamicCode}`)() + const component = new Fn(`return ${dynamicCode}`)() + this.mode = component.default || component } } }