- On the home page, click the login out button to log out
- On the login page, enter your email address and name to enter the home page
- Click Refresh (F5) to refresh the interface, user information will be lost (upper right corner)
tip: However, directly enter the login (http://localhost:3000/login), enter the email address and name, click login, and enter the home page. At this time, clicking refresh will not lose user information.
actions: {
/**
* save user info
* @param userInfo
*/
setUserInfo(userInfo: IUserInfo) {
this.$patch(userInfo)
// fixme save to localStorage
localStorage.setItem(STORE_KEY, JSON.stringify(userInfo))
}
},