|
|
|
@ -70,7 +70,6 @@ const user = {
|
|
|
|
|
commit("SET_TOKEN", res.token);
|
|
|
|
|
// 判断是否是初始密码
|
|
|
|
|
if (password == "Yingji@123") {
|
|
|
|
|
console.log("SET_IS_ORG_PWD");
|
|
|
|
|
commit("SET_IS_ORG_PWD", true);
|
|
|
|
|
}
|
|
|
|
|
resolve();
|
|
|
|
@ -120,6 +119,7 @@ const user = {
|
|
|
|
|
getInfo()
|
|
|
|
|
.then((res) => {
|
|
|
|
|
const user = res.user;
|
|
|
|
|
sessionStorage.setItem("USER_INFO", JSON.stringify(user))
|
|
|
|
|
commit("get_dept", user.dept);
|
|
|
|
|
const avatar =
|
|
|
|
|
user.avatar == "" || user.avatar == null
|
|
|
|
|