refactor(ckbox): 重构客服列表和联系人管理逻辑
- 将ctrlUserList重命名为kfUserList并优化相关接口 - 新增异步更新客服列表、联系人列表和会话列表的方法 - 重构联系人分组逻辑,支持按标签分组 - 优化会话列表排序规则,按最后更新时间降序排列 - 移除无用代码并简化组件逻辑
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user