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

This commit is contained in:
xiaoxian521
2022-12-01 11:31:52 +08:00
parent 47960bbaf9
commit 4c29bcc49a
5 changed files with 54 additions and 31 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();
}