优化了路由逻辑
This commit is contained in:
@@ -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'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user