1.刚进入页面时候的默认界面
在路由文件下面的index.js或者router.js中,添加{path:’/’,redirect:’/join’};
export default new Router({
routes:[{
path:'/'
redirect:'/join'// 这里就是首页展示的文件
}]
})
2.去掉地址栏中的 “#”
方法一:在router.js中添加mode:history
export default new Router({
"mode":"history"
})