fix: back to login does not clear lock-screen state (#41)

* refactor: replace separate date variables with formatted date string

* fix: back to login does not clear lock-screen state
This commit is contained in:
Li Kui
2024-07-12 22:22:36 +08:00
committed by GitHub
parent 06f5d5686d
commit 10b684832d
3 changed files with 14 additions and 15 deletions

View File

@@ -101,9 +101,10 @@ const avatar = computed(() => {
const router = useRouter();
async function handleLogout() {
await appStore.resetAppState();
appStore.resetAppState();
appStore.unlockScreen();
resetRoutes();
router.replace(LOGIN_PATH);
await router.replace(LOGIN_PATH);
}
function handleNoticeClear() {