后端管理模块部署
This commit is contained in:
@@ -72,12 +72,12 @@ const routes: RouteRecordRaw[] = [
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHistory('/emotion-museum-admin/'),
|
||||
routes
|
||||
})
|
||||
|
||||
// 路由守卫
|
||||
router.beforeEach((to, from, next) => {
|
||||
router.beforeEach((to, _from, next) => {
|
||||
const token = localStorage.getItem('adminToken')
|
||||
|
||||
if (to.path === '/login') {
|
||||
|
||||
Reference in New Issue
Block a user