Compare commits

..

No commits in common. "52e80be212e4da40aae8bee0b759fb0b177959d9" and "f07b1d5d115a8780c8cc54ccc987ef05bd2d8d52" have entirely different histories.

2 changed files with 3 additions and 12 deletions

View File

@ -107,16 +107,8 @@ export default {
const data = {
cusCode: fingerprintHash,
tenantId: 'main',
prodId:id,
prodId:id
};
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
//
if (/android|webos|iphone|ipod|BlackBerry|iemobile|opera mini/i.test(userAgent.toLowerCase())) {
data.equipment = '手机端';
} else {
data.equipment = 'pc端';
}
// 使 `this` Vue
this.$axios.$post('/web/chatMain', data).then((res) => {
if (res.id != null) {

View File

@ -21,9 +21,8 @@ export const mutations = {
}
else if (e.data.startsWith("系统通知")){
state.notices.push(e.data);
}else if (e.data.startsWith("close")){
console.log(e.data)
} else {
}
else {
state.messages.push(JSON.parse(e.data));
console.log(state.messages);
}