岗位发布开发
This commit is contained in:
@@ -117,9 +117,9 @@ const useUserStore = defineStore("user", () => {
|
||||
hasLogin.value = true;
|
||||
|
||||
// 模拟添加用户类型字段,实际项目中应该从接口获取
|
||||
if (!userInfo.value.userType) {
|
||||
userInfo.value.userType = 0; // 默认设置为企业用户
|
||||
}
|
||||
// if (!userInfo.value.userType) {
|
||||
// userInfo.value.userType = 1; // 默认设置为求职者用户
|
||||
// }
|
||||
|
||||
// 持久化存储用户信息到本地缓存
|
||||
uni.setStorageSync('userInfo', values.data);
|
||||
|
||||
Reference in New Issue
Block a user