Data caching problem

after logging in with one account, store the login information in session, click exit, clear the session, and log in with another account, and get the login information under this account. There is session (the account information obtained is correct), but the information of the previous account is displayed on the page. Just refresh the page again. What is the problem

?
Dec.15,2021

for example, when your login information is called token, to exit, sessionStorage.removeItem ('token'). When you log in again, you request the initialization interface dataInit,. Check whether the token you request this interface to send is new or old, and determine whose cache it is.

Menu