gjj
2025-02-21 efe41f68868a8926dfc1a6851a492805b56786db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import store from "../store/index";
import router from "../router";
 
const clearAuthenticateInfo = () => {
    store.commit("common/setToken", "");
    store.commit("common/setUserProfile", null);
    window.localStorage.removeItem("token");
    window.localStorage.removeItem("userProfile");
}
 
export const toLoginPage = () => {
    clearAuthenticateInfo();
    router.replace("/login");
}
 
export const toResetPwdPage = () => {
    clearAuthenticateInfo();
    router.replace("/resetpwd");
}