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