|
@@ -39,7 +39,7 @@
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
|
<el-tab-pane label="互动" name="first">
|
|
|
<el-col :span="24" class="chat">
|
|
|
- <el-col :span="24" class="chatInfo">
|
|
|
+ <el-col :span="24" class="chatInfo" id="chatSell">
|
|
|
<el-col :span="24" class="list" v-for="(item, index) in dataList" :key="index">
|
|
|
<p>
|
|
|
<span :class="item.sendname == user.name ? 'selfColor' : ''">{{ item.sendname }}</span>
|
|
@@ -144,6 +144,9 @@ export default {
|
|
|
this.dataList.push(body);
|
|
|
this.content = '';
|
|
|
}
|
|
|
+ this.$nextTick(() => {
|
|
|
+ document.getElementById('chatSell').scrollTop = document.getElementById('chatSell').scrollHeight + 275;
|
|
|
+ });
|
|
|
// const { content, contenttype, sendid, sendname, icon, groupid, sendtime, type } = message.headers;
|
|
|
// let object = { content, contenttype, sendid, sendname, icon, groupid, sendtime, type };
|
|
|
// this.list.push(object);
|