修复tx源某些评论的换行问题
parent
fe1c2a1896
commit
fcf92f06ef
|
@ -161,7 +161,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
id: item.subcommentid,
|
id: item.subcommentid,
|
||||||
rootId: item.rootcommentid,
|
rootId: item.rootcommentid,
|
||||||
text: item.rootcommentcontent ? this.replaceEmoji(item.rootcommentcontent).replace(/\\\n/g, '\n').split('\n') : [],
|
text: item.rootcommentcontent ? this.replaceEmoji(item.rootcommentcontent).replace(/\\n/g, '\n').split('\n') : [],
|
||||||
time,
|
time,
|
||||||
timeStr: time ? dateFormat2(time) : null,
|
timeStr: time ? dateFormat2(time) : null,
|
||||||
userName: item.rootcommentnick ? item.rootcommentnick.substring(1) : '',
|
userName: item.rootcommentnick ? item.rootcommentnick.substring(1) : '',
|
||||||
|
@ -172,7 +172,7 @@ export default {
|
||||||
let index = c.subcommentid.lastIndexOf('_')
|
let index = c.subcommentid.lastIndexOf('_')
|
||||||
return {
|
return {
|
||||||
id: c.subcommentid,
|
id: c.subcommentid,
|
||||||
text: this.replaceEmoji(c.subcommentcontent).replace(/\\\n/g, '\n').split('\n'),
|
text: this.replaceEmoji(c.subcommentcontent).replace(/\\n/g, '\n').split('\n'),
|
||||||
time: parseInt(c.subcommentid.substring(index + 1) + '000'),
|
time: parseInt(c.subcommentid.substring(index + 1) + '000'),
|
||||||
timeStr: dateFormat2(parseInt(c.subcommentid.substring(index + 1) + '000')),
|
timeStr: dateFormat2(parseInt(c.subcommentid.substring(index + 1) + '000')),
|
||||||
userName: c.replynick.substring(1),
|
userName: c.replynick.substring(1),
|
||||||
|
|
Loading…
Reference in New Issue