fix: #306. At MainContainer, use cookie to determine instead of using pinia state
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user