commit
This commit is contained in:
@@ -329,7 +329,8 @@
|
||||
},
|
||||
actions: {}
|
||||
})
|
||||
$.get("/platform/sys/user/getLogonUser").then((res) => {
|
||||
// 暴露当前登录用户的加载状态,业务页面可在用户、角色和所属工会写入 store 后再执行初始化。
|
||||
window.logonUserReady = $.get("/platform/sys/user/getLogonUser").then((res) => {
|
||||
if (res.code === 0) {
|
||||
window.sessionStorage.setItem("user", JSON.stringify(res.data))
|
||||
store.commit("setUser", res.data)
|
||||
|
||||
Reference in New Issue
Block a user