个人中心页面实名认证后信息的对比判断修正
This commit is contained in:
parent
630d6bd638
commit
f63c334aeb
|
|
@ -54,7 +54,7 @@ export default {
|
|||
// 用户信息
|
||||
userInfo: {
|
||||
nickName: "",
|
||||
isRealName: "",
|
||||
isReal: "",
|
||||
avatar: "",
|
||||
},
|
||||
// 菜单项数据
|
||||
|
|
@ -101,9 +101,10 @@ export default {
|
|||
// 更新用户信息
|
||||
this.userInfo = {
|
||||
nickName: response.data.nickName,
|
||||
isRealName: response.data.isReal || "false",
|
||||
isReal: response.data.isReal,
|
||||
avatar: response.data.avatar,
|
||||
};
|
||||
console.log("this.userInfo ", this.userInfo);
|
||||
} else {
|
||||
console.warn("获取用户信息失败:", response.msg);
|
||||
// 使用默认信息
|
||||
|
|
@ -137,7 +138,8 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
realNameStatus() {
|
||||
return this.userInfo.isRealName === "true" ? "已实名" : "未实名";
|
||||
console.log("<this.userInfo.isReal>:", this.userInfo.isReal);
|
||||
return this.userInfo.isReal.toString() === "true" ? "已实名" : "未实名";
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user