You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I login in my home page.
1、authStore.login(data); // checked the data was save in localStorage.
2、When I click refresh button of chrome. I see the "token" in localStorage change to empty string.
When I run "vite --port 3000 --open" in local. the token is ok.
But When I run "vite-ssg build" and deploy to server. the token is missing when I refresh page.
1、open it. use chrome dev tools. set localStorage token anything in application.
2、refresh page. the token value is gone.
tips: dev fine. build deploy to server, lost token. reproduction project.
Describe the bug
When I login in my home page.
1、authStore.login(data); // checked the data was save in localStorage.
2、When I click refresh button of chrome. I see the "token" in localStorage change to empty string.
When I run "vite --port 3000 --open" in local. the token is ok.
But When I run "vite-ssg build" and deploy to server. the token is missing when I refresh page.
I tried add ssr, but it still doesn't work.
Reproduction
1、open it. use chrome dev tools. set localStorage token anything in application.
2、refresh page. the token value is gone.
tips: dev fine. build deploy to server, lost token.
reproduction project.
System Info
Used Package Manager
pnpm
Validations
Contributions
The text was updated successfully, but these errors were encountered: