fix: #306. At MainContainer, use cookie to determine instead of using pinia state

This commit is contained in:
Cindy Chang committed 2024-07-01 08:52:38 +08:00
1 parent 2a8826c962
commit 69a3f27cb2
4 files changed
+15 -14

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ export default {
async beforeRouteEnter(to, from, next) {
const loginStore = LoginStore();
if (!loginStore.isLoggedIn) {
if (!getCookie("isLuciaLoggedIn")) {
if (getCookie('luciaRefreshToken')) {
await loginStore.refreshToken();
loginStore.setIsLoggedIn(true);