优化了路由逻辑
This commit is contained in:
parent
89d94ef694
commit
c2e1462a28
@ -15,13 +15,10 @@ const router = createRouter({
|
|||||||
component: () => import('@/views/ManagePage.vue'),
|
component: () => import('@/views/ManagePage.vue'),
|
||||||
meta: { requiresAuth: true }
|
meta: { requiresAuth: true }
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/',
|
|
||||||
redirect: '/manage'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/:pathMatch(.*)*',
|
path: '/:pathMatch(.*)*',
|
||||||
redirect: '/login'
|
redirect: '/manage'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user