perf: 清空缓存并返回登录页时添加重置路由 (#329)

Co-authored-by: xiaoxian521 <1923740402@qq.com>
This commit is contained in:
newives 2022-08-19 15:56:39 +08:00 committed by GitHub
parent a74a9e2489
commit 0e76bd4aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ import { getConfig } from "/@/config";
import { useRouter } from "vue-router";
import panel from "../panel/index.vue";
import { emitter } from "/@/utils/mitt";
import { resetRouter } from "/@/router";
import { templateRef } from "@vueuse/core";
import { routerArrays } from "/@/layout/types";
import { useNav } from "/@/layout/hooks/useNav";
@ -140,6 +141,7 @@ function onReset() {
useMultiTagsStoreHook().handleTags("equal", [...routerArrays]);
storageLocal.clear();
storageSession.clear();
resetRouter();
}
function onChange(label) {