提交 eedf8044 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update index.uvue

上级 88c772e6
......@@ -32,11 +32,18 @@
},
openName():string{
if(this.isLogin){
const nickname = userInfo['nickname'] as string;
let nickname = userInfo.getString("nickname")
let username = userInfo.getString("username")
if(nickname == null){
nickname = "";
}
if(username == null){
username = "";
}
if(nickname.length != 0){
return nickname
}else{
return userInfo['username'] as string
return username
}
}else{
return '未登录'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册