您的位置:首页 > 产品设计 > UI/UE

在使用vue-router遇到的问题以及解决办法

2016-12-03 16:31 971 查看
1、ERROR in ./src/view/BootPage.vue
template syntax error Component template should contain exactly one root element:
<nav class="boot-nav">..................
解决方法:在vue-router2.0中,事件template的根节点只能有一个。
2、 [Vue warn]: Failed to resolve directive: link

(found in anonymous component - use the "name" option for better debugging messages.)
解决方法:在vue-router1.0和vue-router2.0中有些指令和语法已经发生了变化。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: