优化消息列表组件,新增消息内容展示,调整消息时间格式处理逻辑,更新获取消息列表的API以支持分页,提升用户体验和代码可读性。

This commit is contained in:
2025-10-22 15:28:03 +08:00
parent 17e81cafc2
commit 5b9ae2b805
7 changed files with 142 additions and 134 deletions

View File

@@ -19,7 +19,7 @@ export const createContractList = async (
const dataByLabels = [];
for (const label of countLables) {
let data;
if (label.groupType === 1) {
if (Number(label.groupType) === 1) {
if (label.id == 0) {
data = await contractService.findWhereMultiple([
{
@@ -36,7 +36,7 @@ export const createContractList = async (
data = data.filter(contact => contact.wechatAccountId === kfSelected);
}
// console.log(`标签 ${label.groupName} 对应的联系人数据:`, data);
} else if (label.groupType === 2) {
} else if (Number(label.groupType) === 2) {
// groupType: 2, 查询 weChatGroupService
if (label.id == 0) {
data = await weChatGroupService.findWhereMultiple([