修复打包失败报错问题,修复菜单管理页面ts类型问题

This commit is contained in:
2025-02-24 11:37:27 +08:00
parent 59e1995253
commit 220332c0e5
16 changed files with 152 additions and 17796 deletions

View File

@@ -54,8 +54,8 @@ export const useUserStore = defineStore("user", () => {
}
localStorage.setItem("shopId", "" + userInfo.value.shopId);
console.log("获取用户信息", data);
Object.assign(userInfo.value, { ...data });
resolve(data);
Object.assign(userInfo.value, { ...data, roles: [], promissionList: [], shopId: userInfo.value.shopId });
resolve(userInfo.value);
})
.catch((error) => {
reject(error);