Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -248,9 +248,9 @@ struct EditUserInfoPage { | @@ -248,9 +248,9 @@ struct EditUserInfoPage { | ||
| 248 | if (backParams) { | 248 | if (backParams) { |
| 249 | let userName = backParams.userName as string ///昵称 | 249 | let userName = backParams.userName as string ///昵称 |
| 250 | let introduction = backParams.introduction as string ///简介 | 250 | let introduction = backParams.introduction as string ///简介 |
| 251 | - this.listData = [] | ||
| 252 | if (userName) { | 251 | if (userName) { |
| 253 | if (userName != this.currentUserInfo.userName) { | 252 | if (userName != this.currentUserInfo.userName) { |
| 253 | + this.listData = [] | ||
| 254 | this.currentUserInfo.userName = userName; | 254 | this.currentUserInfo.userName = userName; |
| 255 | this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_nickname | 255 | this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_nickname |
| 256 | this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo)) | 256 | this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo)) |
| @@ -259,6 +259,7 @@ struct EditUserInfoPage { | @@ -259,6 +259,7 @@ struct EditUserInfoPage { | ||
| 259 | } | 259 | } |
| 260 | } else if (introduction){ | 260 | } else if (introduction){ |
| 261 | if (introduction != this.currentUserInfo.userExtend.introduction ) { | 261 | if (introduction != this.currentUserInfo.userExtend.introduction ) { |
| 262 | + this.listData = [] | ||
| 262 | this.currentUserInfo.userExtend.introduction = introduction; | 263 | this.currentUserInfo.userExtend.introduction = introduction; |
| 263 | this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_intro | 264 | this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_intro |
| 264 | this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo)) | 265 | this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo)) |
-
Please register or login to post a comment