| | |
| | | token: getToken(), |
| | | name: "", |
| | | nickName: "", |
| | | orgname: localStorage.getItem("orgname") || "", |
| | | Id: "", |
| | | avatar: "", |
| | | hisUserId: "", |
| | |
| | | }, |
| | | SET_nickNAME: (state, name) => { |
| | | state.nickName = name; |
| | | }, |
| | | SET_ORGNAME: (state, orgname) => { |
| | | state.orgname = orgname; |
| | | }, |
| | | SET_visitAgain: (state, visitAgain) => { |
| | | state.visitAgain = visitAgain; |
| | |
| | | localStorage.setItem("YongHuID", ""); |
| | | localStorage.setItem("YongHuXM", ""); |
| | | } |
| | | // 同步到 Vuex,供全局 getter(如 isTongdeOrg)使用 |
| | | commit("SET_ORGNAME", localStorage.getItem("orgname") || orgname); |
| | | resolve(); |
| | | }) |
| | | .catch((error) => { |