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

This commit is contained in:
xiaoxian521
2022-12-01 11:42:10 +08:00
parent 8ca8bbcee0
commit 80453ec4b1
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();
}