美文网首页
路由配置

路由配置

作者: xu丽_twilight | 来源:发表于2018-08-23 15:41 被阅读0次

路由是根据网址的不同,返回不同的内容给用户

在ruter文件夹中的index.js添加以下内容

在components文件夹中需要添加相应内容以及main.js中添加内容引入router


然后在components文件夹中添加header和导航栏文件夹


m-header的内容为


tab导航栏内容为


在app.vue中引入这两个vue文件

相关文章

网友评论

      本文标题:路由配置

      本文链接:https://www.haomeiwen.com/subject/obfmiftx.html