fix: reset tags when logout (#286)

This commit is contained in:
一万
2022-05-28 23:10:26 +08:00
committed by GitHub
parent 636201df80
commit 804f1aea9b
3 changed files with 5 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ function onReset() {
useMultiTagsStoreHook().multiTagsCacheChange(MultiTagsCache);
toggleClass(Grey, "html-grey", document.querySelector("html"));
toggleClass(Weak, "html-weakness", document.querySelector("html"));
useMultiTagsStoreHook().handleTags("equal", routerArrays);
useMultiTagsStoreHook().handleTags("equal", [...routerArrays]);
storageLocal.clear();
storageSession.clear();
}