From cd9fabbc094d050b9eea2ecd1027ffe27487fdfb Mon Sep 17 00:00:00 2001 From: Anne_LXM <54163582+anne-lxm@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E6=AC=A1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=98=B5=E7=A7=B0=E6=8A=A5=E9=94=99null=20cannot=20be?= =?UTF-8?q?=20cast=20to=20non-null=20type=20kotlin.String=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-id-pages-x/pages/userinfo/setNickname/setNickname.uvue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3e4d995..b3e863d 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() { -- GitLab