如果是连续时间,则中间位置只显示第一个时间

This commit is contained in:
bob
2024-09-09 17:52:28 +08:00
parent 4d7aa4f7a2
commit 31d954450a

View File

@@ -86,10 +86,8 @@ const showId = computed(() => {
const getLastMsgTime = (index) => {
if (index > 0) {
console.log(testdata.value[index - 1].content);
return testdata.value[index - 1].msgTime;
} else {
console.log('null');
return null;
}
}