vue配置默认显示页面和默认路由

vue配置默认显示页面和默认路由

1.在router文件夹中的index.js中配置

const routes = [
    {
    
    
        //没写就是任意路由都是定向这个
        path:'',
        //重定向
        redirect:'/xxx'
    }
]

Guess you like

Origin blog.csdn.net/qq_44255146/article/details/115965261