vue 如何把组件字符窜转为对象

vue-router.esm.js?fe87:10 Uncaught (in promise) Error: [vue-router] route config "component" for path: /system cannot be a string id. Use an actual component instead.

因为是addrouter 通过后台组装返回的数据 导致component为字符窜 请问有什么方法能去掉吗

回复
阅读 3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏