Merge pull request #6439 from dataease/pr@dev-v2@fix_login_refresh_error

fix: 偶尔出现登录后需要刷新一次才能进入页面
This commit is contained in:
fit2cloud-chenyw 2023-10-31 09:19:45 +08:00 committed by GitHub
commit 0344daabce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,9 @@ export const pathValid = path => {
* @returns
*/
const hasCurrentRouter = (locations, routers, index) => {
if (!routers?.length) {
return false
}
const location = locations[index]
let kids = []
const isvalid = routers.some(router => {