明树Git Lab

Commit 96436937 authored by zfp1's avatar zfp1
parents 141ac0f8 34b658ff
...@@ -32,7 +32,8 @@ $(function () { ...@@ -32,7 +32,8 @@ $(function () {
}), }),
dataType: "json", dataType: "json",
success: (res) => { success: (res) => {
let conversationList = res.list; if (res.code === 0) {
let conversationList = res.data.list;
let html = "" let html = ""
conversationList.forEach(item => { conversationList.forEach(item => {
html = `<div class="conversation-item"><div class="conversation-item"> html = `<div class="conversation-item"><div class="conversation-item">
...@@ -46,6 +47,7 @@ $(function () { ...@@ -46,6 +47,7 @@ $(function () {
$('.conversation-wrap').html(html + $('.conversation-wrap').html()); $('.conversation-wrap').html(html + $('.conversation-wrap').html());
scrollBottom(); scrollBottom();
} }
}
}) })
} }
// 获取用户信息 // 获取用户信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment