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

在使用VUE的过程中有可能会遇到这样的提示: “Failed to mount component: template or render function not defined”,提示挂载组件失败,原因可能是:

  • 模板文件有问题——可检查代码查找问题;
  • vue-router方面的问题——可检查vue-router的相关代码是否有问题;

版权声明:本文为weixin_43130844原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。