test(addon/aikefu): 测试会话管理及消息展示
This commit is contained in:
@@ -165,6 +165,15 @@
|
||||
height: 'full-200',
|
||||
text: {
|
||||
none: '暂无会话数据'
|
||||
},
|
||||
parseData: function(res) {
|
||||
// 将后端返回的数据格式转换为Layui表格所需的格式
|
||||
return {
|
||||
"code": res.code,
|
||||
"msg": res.msg,
|
||||
"count": res.data.page_info.total,
|
||||
"data": res.data.conversations
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -305,7 +305,7 @@
|
||||
success: function(res) {
|
||||
if (res.code === 0) {
|
||||
var list = res.data.messages;
|
||||
total = res.count;
|
||||
total = res.data.page_info.total;
|
||||
|
||||
var html = '';
|
||||
if (list.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user