feat: 添加 CachingAsyncRoutes 是否开启动态路由缓存本地,默认 true

This commit is contained in:
xiaoxian521
2022-12-01 11:46:18 +08:00
parent cac6d8071f
commit 5cb19eec75
5 changed files with 55 additions and 48 deletions

View File

@@ -33,6 +33,7 @@ function onChange() {
.loginByUsername({ username: username.value, password: "admin123" })
.then(res => {
if (res.success) {
sessionStorage.removeItem("async-routes");
usePermissionStoreHook().clearAllCachePage();
initRouter();
}