首页布局更改

This commit is contained in:
冯辉
2025-10-16 16:44:30 +08:00
parent 028e3202bd
commit 14dafac147
12 changed files with 1281 additions and 54 deletions

View File

@@ -111,6 +111,12 @@ const useUserStore = defineStore("user", () => {
resume.value = values.data; // 将用户信息同时存储到resume中
// role.value = values.role;
hasLogin.value = true;
// 模拟添加用户类型字段,实际项目中应该从接口获取
if (!userInfo.value.userType) {
userInfo.value.userType = 0; // 默认设置为企业用户
}
// 持久化存储用户信息到本地缓存
uni.setStorageSync('userInfo', values.data);
}