Skip to content

Commit

Permalink
fix: 修复账号管理、安全设置路由处理错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed May 1, 2024
1 parent ca25285 commit c0c5ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function resetRouter() {
router.getRoutes().forEach((route) => {
const { name } = route
// console.log('name', name, path)
if (name && name !== 'Home') {
if (name && !['Home', 'Setting', 'SettingProfile', 'SettingSecurity'].includes(name.toString())) {
router.hasRoute(name) && router.removeRoute(name)
}
})
Expand Down

0 comments on commit c0c5ba8

Please sign in to comment.