|
@@ -475,7 +475,9 @@
|
|
|
//接收会话时间
|
|
//接收会话时间
|
|
|
if (redata.message_type == "webTime") {
|
|
if (redata.message_type == "webTime") {
|
|
|
let data = this.data;
|
|
let data = this.data;
|
|
|
- data[this.session_marked].time = redata.data.webTime
|
|
|
|
|
|
|
+ console.log(data);
|
|
|
|
|
+
|
|
|
|
|
+ data[data.length -1].time = redata.data.webTime
|
|
|
this.$store.dispatch("SET_CURRENT", data);
|
|
this.$store.dispatch("SET_CURRENT", data);
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
@@ -535,7 +537,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- /****/
|
|
|
|
|
|
|
+ /**********************图片上传***********************/
|
|
|
upImg(formData){
|
|
upImg(formData){
|
|
|
let self = this;
|
|
let self = this;
|
|
|
// 数据结构请求
|
|
// 数据结构请求
|
|
@@ -558,6 +560,7 @@
|
|
|
type: false,
|
|
type: false,
|
|
|
};
|
|
};
|
|
|
let chatList = self.sessionList[self.dataIndex];
|
|
let chatList = self.sessionList[self.dataIndex];
|
|
|
|
|
+ console.log(self.webTime);
|
|
|
//本地存储
|
|
//本地存储
|
|
|
chatList.data.push({type: 'service', content: obj, time:self.webTime});
|
|
chatList.data.push({type: 'service', content: obj, time:self.webTime});
|
|
|
// self.data = [];
|
|
// self.data = [];
|