update 优化 类型报错问题

This commit is contained in:
疯狂的狮子Li
2024-08-02 13:53:48 +08:00
parent 9193f0b84a
commit 9eb7b433b4
5 changed files with 17 additions and 79 deletions

View File

@ -40,6 +40,7 @@ router.beforeEach(async (to, from, next) => {
router.addRoute(route); // 动态添加可访问路由表
}
});
// @ts-ignore
next({ path: to.path, replace: true, params: to.params, query: to.query, hash: to.hash, name: to.name as string }); // hack方法 确保addRoutes已完成
}
} else {