| | |
| | | sessionStorage["HCheckEmpName"] = res.data[0].HCheckEmpName; |
| | | sessionStorage["login"] = "login"; |
| | | sessionStorage["HType"] = "PC"; |
| | | |
| | | commit("SET_NICK_NAME", sessionStorage["HUserName"]); |
| | | getOrganizations().then((res) => { |
| | | if (res.count == 1) { |
| | | const stringifiedItems = JSON.stringify(res.data); |
| | | sessionStorage.setItem("organizationList", stringifiedItems); |
| | | } |
| | | }); |
| | | setToken(res.token); |
| | | commit("SET_TOKEN", res.token); |
| | | resolve(); |
| | |
| | | GetInfo({ commit, state }) { |
| | | return new Promise((resolve, reject) => { |
| | | commit("SET_NICK_NAME", sessionStorage["HUserName"]); |
| | | getOrganizations().then((res) => { |
| | | if (res.count == 1) { |
| | | const stringifiedItems = JSON.stringify(res.data); |
| | | sessionStorage.setItem("organizationList", stringifiedItems); |
| | | } |
| | | }); |
| | | resolve(); |
| | | }); |
| | | }, |