ref |> 解决评论列表号主头像无法进入用户主页问题
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
2 changed files
with
8 additions
and
5 deletions
| @@ -68,7 +68,7 @@ export class commentItemModel { | @@ -68,7 +68,7 @@ export class commentItemModel { | ||
| 68 | fromUserHeader: string = '' | 68 | fromUserHeader: string = '' |
| 69 | fromUserId: string = '' | 69 | fromUserId: string = '' |
| 70 | fromUserName: string = '' | 70 | fromUserName: string = '' |
| 71 | - fromUserType: WDPublicUserType = 0 | 71 | + fromUserType: WDPublicUserType = 1 |
| 72 | id: string = '' | 72 | id: string = '' |
| 73 | likeNum: string = '0' | 73 | likeNum: string = '0' |
| 74 | mySelf: string = '' | 74 | mySelf: string = '' |
| @@ -485,10 +485,13 @@ class CommentViewModel { | @@ -485,10 +485,13 @@ class CommentViewModel { | ||
| 485 | 485 | ||
| 486 | jumpToAccountPage(commentItem: commentItemModel) { | 486 | jumpToAccountPage(commentItem: commentItemModel) { |
| 487 | let url = HttpUrlUtils.getOtherUserDetailDataUrl() | 487 | let url = HttpUrlUtils.getOtherUserDetailDataUrl() |
| 488 | - let item : Record<string, string >= { | ||
| 489 | - "creatorId": commentItem.fromCreatorId || "", | ||
| 490 | - "userType": `${commentItem.fromUserType}`, | ||
| 491 | - "userId": commentItem.fromUserId || "-1", | 488 | + let item : Record<string, string >= {} |
| 489 | + | ||
| 490 | + if (commentItem.fromCreatorId) { | ||
| 491 | + item["creatorId"] = commentItem.fromCreatorId | ||
| 492 | + } else { | ||
| 493 | + item["userType"] = `${commentItem.fromUserType}` | ||
| 494 | + item["userId"] = commentItem.fromUserId | ||
| 492 | } | 495 | } |
| 493 | HttpBizUtil.post<ResponseDTO<MasterDetailRes>>(url, item).then((result) => { | 496 | HttpBizUtil.post<ResponseDTO<MasterDetailRes>>(url, item).then((result) => { |
| 494 | if (!result.data || result.data.mainControl != 1) { | 497 | if (!result.data || result.data.mainControl != 1) { |
-
Please register or login to post a comment