🎈 perf:优化动态路由在首次加载时未匹配导致警告、路由不存在时保留错误路径

This commit is contained in:
preschool committed 2024-08-14 15:26:52 +08:00
1 parent 5a21c0e8ca
commit cc1d2b194d
2 files changed
+13 -1

No files matched your search

+10
View File
@@ -593,6 +593,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
}
]
},
{
path: '/:pathMatch(.*)*',
component: () => import('@/views/Error/404.vue'),
name: '',
meta: {
title: '404',
hidden: true,
breadcrumb: false
}
}
]