test(addon/aikefu): 测试会话管理及消息展示

This commit is contained in:
2025-12-08 18:26:01 +08:00
parent f4868f8a79
commit 1d453e8663
2 changed files with 10 additions and 1 deletions

View File

@@ -165,6 +165,15 @@
height: 'full-200', height: 'full-200',
text: { text: {
none: '暂无会话数据' none: '暂无会话数据'
},
parseData: function(res) {
// 将后端返回的数据格式转换为Layui表格所需的格式
return {
"code": res.code,
"msg": res.msg,
"count": res.data.page_info.total,
"data": res.data.conversations
};
} }
}); });

View File

@@ -305,7 +305,7 @@
success: function(res) { success: function(res) {
if (res.code === 0) { if (res.code === 0) {
var list = res.data.messages; var list = res.data.messages;
total = res.count; total = res.data.page_info.total;
var html = ''; var html = '';
if (list.length > 0) { if (list.length > 0) {