在编写vue时出现 Failed to mount component: template or render function not defined.
其原因是,在创建** .vue **文件时没有在文件中添加
<template> </template> 而导致无法引用该文件。 所以一定注意:创建.vue文件时,注意一定要写入 <template></template> 即便是没有任何内容,也要写 请养成好习惯