实际项目中遇到的问题
const data = await queryLiveMsgList({
lastMsgId:
this.liveMessage.length > 0 ? this.liveMessage[this.liveMessage.length - 1].id : 0,
lastMsgTime:
this.liveMessage.length > 0
? new Date(this.liveMessage[this.liveMessage.length - 1].createTime).getTime() / 1000
: 0,
order: 0,
size: 10,
stageId: this.stageId
});
解决方法
new Date(xxx.replace(/-/g,'/')).getTime()