Showing
1 changed file
with
2 additions
and
1 deletions
@@ -152,6 +152,7 @@ const getMessageList = (uid, params, limit) => { | @@ -152,6 +152,7 @@ const getMessageList = (uid, params, limit) => { | ||
152 | 152 | ||
153 | let href = `/home/message/detail?id=${value.id}&page=${page}`; | 153 | let href = `/home/message/detail?id=${value.id}&page=${page}`; |
154 | 154 | ||
155 | + href += type ? `&type=${type}` : ''; | ||
155 | switch (value.type) { | 156 | switch (value.type) { |
156 | case 'pullCoupon': | 157 | case 'pullCoupon': |
157 | case 'button': | 158 | case 'button': |
@@ -166,7 +167,7 @@ const getMessageList = (uid, params, limit) => { | @@ -166,7 +167,7 @@ const getMessageList = (uid, params, limit) => { | ||
166 | 167 | ||
167 | msg.push({ | 168 | msg.push({ |
168 | id: value.id || 0, | 169 | id: value.id || 0, |
169 | - href: type ? href + `&type=${type}` : href, | 170 | + href: href, |
170 | title: value.title || '', | 171 | title: value.title || '', |
171 | content: _.get(value, 'body.content', ''), | 172 | content: _.get(value, 'body.content', ''), |
172 | sender: value.from || '', | 173 | sender: value.from || '', |
-
Please register or login to post a comment