[Vue warn]: Failed to mount component: template or render function not defined.

[Vue warn]: Failed to mount component: template or render function not defined.

 

 getAccessNav 函数,只是处理了权限菜单,如果权限为admin,allNav值不变
但是list中的compone属性改变了,

下图,第一个列表是allNav,第二个是navList,注意区别,beforeCreate是null

[Vue warn]: Failed to mount component: template or render function not defined.

下为报错

 

[Vue warn]: Failed to mount component: template or render function not defined.

 

解决办法为,在遍历一遍navList,component属性重新赋值 Main组件

 

 

相关文章:

  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案