feature: remember node positions after refreshing pages

This commit is contained in:
Cindy Chang
2024-07-01 10:39:53 +08:00
parent 69a3f27cb2
commit 24ccdd47ae
5 changed files with 60 additions and 40 deletions

View File

@@ -110,7 +110,7 @@ export default {
async beforeRouteEnter(to, from, next) {
const loginStore = LoginStore();
if (!getCookie("isLuciaLoggedIn")) {
if (!getCookie("isLuciaLoggedIn")) { //這裡不要用pinia的isLoggedIn來檢查因為會有重新整理時撈不到Persisted value的值的bug
if (getCookie('luciaRefreshToken')) {
await loginStore.refreshToken();
loginStore.setIsLoggedIn(true);