个人中心页面实名认证后信息的对比判断修正

This commit is contained in:
WindowBird 2025-09-18 15:11:57 +08:00
parent 630d6bd638
commit f63c334aeb

View File

@ -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" ? "已实名" : "未实名";
},
},
};