Skip to content

Commit 6029f91

Browse files
committed
update: optimize data update in the user profile page
1 parent f9f2703 commit 6029f91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/user/user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ Page({
134134
}
135135
oResult.aTopicList = aData.map(oItem => {
136136
return {
137-
...oItem,
137+
id: oItem.id,
138+
title: oItem.title,
139+
author: oItem.author,
138140
last_reply_at: wx.moment(oItem.last_reply_at).fromNow()
139141
};
140142
});

0 commit comments

Comments
 (0)