Commit 360d3db4 authored by caicaicai's avatar caicaicai

路由重定向到登陆页面

parent ecba0c85
......@@ -151,12 +151,12 @@ const routes = [
// // which is lazy-loaded when the route is visited.
// component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
// },
// //路由重定向
// {
// name: 'default',
// path: '*',
// redirect: '/login'
// }
//路由重定向
{
name: 'default',
path: '*',
redirect: '/login'
}
]
const router = new VueRouter({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment