refactor(ckbox): 重构客服列表和联系人管理逻辑

- 将ctrlUserList重命名为kfUserList并优化相关接口
- 新增异步更新客服列表、联系人列表和会话列表的方法
- 重构联系人分组逻辑,支持按标签分组
- 优化会话列表排序规则,按最后更新时间降序排列
- 移除无用代码并简化组件逻辑
This commit is contained in:
2025-08-28 15:18:18 +08:00
parent 3c1337b213
commit 640daf2431
10 changed files with 226 additions and 182 deletions

View File

@@ -1,6 +1,9 @@
import { Modal } from "antd-mobile";
import { getSetting } from "@/store/module/settings";
export function formatWechatTime(timestamp) {
if (!timestamp) {
return "";
}
// 处理时间戳(兼容秒级/毫秒级)
const date = new Date(
timestamp.toString().length === 10 ? timestamp * 1000 : timestamp,