今天在项目中用到了vue-router ,在使用过程中出现了template or render function not defined的Vue错误,原因是因为在该Vue文件中export default 中没有设置 name,看似一个很简单的问题,却犯了错误,谨记谨记