fix: 动态刷新之后404

This commit is contained in:
JaguarJack
2023-02-23 09:38:48 +08:00
parent c73c68dee5
commit 8fd87ad46b
2 changed files with 8 additions and 8 deletions

View File

@@ -43,12 +43,7 @@ const defaultRoutes: RouteRecordRaw[] = [
name: 'login',
meta: { title: '登录' },
component: () => import('/admin/views/login/index.vue'),
},
// 未定义路有重定向到 404
{
path: '/:pathMatch(.*)*',
redirect: '/404',
},
}
]
const routes = constantRoutes.concat(defaultRoutes)