提交 cd9fabbc 编写于 作者: A Anne_LXM

修复首次设置昵称报错null cannot be cast to non-null type kotlin.String的问题

上级 058b6437
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
return this.currentNickname != this.nickname return this.currentNickname != this.nickname
}, },
currentNickname() : string { currentNickname() : string {
return (state.userInfo.get("nickname") as string) return state.userInfo.get("nickname") == null?'':(state.userInfo.get("nickname") as string)
} }
}, },
onLoad() { onLoad() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册