diff --git a/uni_modules/uni-id-pages-x/pages/userinfo/setNickname/setNickname.uvue b/uni_modules/uni-id-pages-x/pages/userinfo/setNickname/setNickname.uvue index 3e4d995ab2cf333c4ac94d9ed7a86e0999e7c714..b3e863dda77b2194b112f1130bf55f981ce3e47e 100644 --- a/uni_modules/uni-id-pages-x/pages/userinfo/setNickname/setNickname.uvue +++ b/uni_modules/uni-id-pages-x/pages/userinfo/setNickname/setNickname.uvue @@ -24,7 +24,7 @@ return this.currentNickname != this.nickname }, currentNickname() : string { - return (state.userInfo.get("nickname") as string) + return state.userInfo.get("nickname") == null?'':(state.userInfo.get("nickname") as string) } }, onLoad() {