路由是根据网址的不同,返回不同的内容给用户
在ruter文件夹中的index.js添加以下内容



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


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

m-header的内容为

tab导航栏内容为

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

路由是根据网址的不同,返回不同的内容给用户
在ruter文件夹中的index.js添加以下内容
在components文件夹中需要添加相应内容以及main.js中添加内容引入router
然后在components文件夹中添加header和导航栏文件夹
m-header的内容为
tab导航栏内容为
在app.vue中引入这两个vue文件
本文标题:路由配置
本文链接:https://www.haomeiwen.com/subject/obfmiftx.html
网友评论