This commit is contained in:
2026-08-04 11:04:15 +08:00
parent ff3e8075b5
commit 6e3279e485
43 changed files with 2082 additions and 426 deletions
@@ -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)