fix: 前端用户列表控制台报错

This commit is contained in:
fit2cloud-chenyw
2021-11-11 14:06:03 +08:00
parent b7e76f805c
commit 6afdfca886
3 changed files with 23 additions and 11 deletions

View File

@@ -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}`)()
}
}
}
},