Want to know why your login information will be invalid? Take a look #1460
Unanswered
liuhuanhui
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When SSR is turned on, my login information will be invalid as soon as it is refreshed. I searched a lot of issues and found that most people have not solved the problem, including me. Then I found the problem myself and found that the problem is not in the auth module, but in Axios. The reason is that the $axios.defaults.baseurl needs to be configured with an absolute path, otherwise it is impossible to obtain the interface on the server side. Here is my configuration.
I've solved it perfectly now.
Beta Was this translation helpful? Give feedback.
All reactions