From 5b8863b900c7ae5d557eb0ce42033cc016e44131 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 11 Nov 2021 14:06:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=89=8D=E7=AB=AF=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/AsyncComponent/index.vue | 6 +++-- frontend/src/views/system/user/form.vue | 2 +- frontend/src/views/system/user/index.vue | 26 +++++++++++++------ 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/AsyncComponent/index.vue b/frontend/src/components/AsyncComponent/index.vue index 114f3c9862..b115381fda 100644 --- a/frontend/src/components/AsyncComponent/index.vue +++ b/frontend/src/components/AsyncComponent/index.vue @@ -45,8 +45,10 @@ export default { } else { res = await window.SyncComponentCache[this.url] } - 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}`)() + } } } }, diff --git a/frontend/src/views/system/user/form.vue b/frontend/src/views/system/user/form.vue index 096608a604..d1659d0e73 100644 --- a/frontend/src/views/system/user/form.vue +++ b/frontend/src/views/system/user/form.vue @@ -1,6 +1,6 @@