Compare commits
No commits in common. "52e80be212e4da40aae8bee0b759fb0b177959d9" and "f07b1d5d115a8780c8cc54ccc987ef05bd2d8d52" have entirely different histories.
52e80be212
...
f07b1d5d11
@ -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) {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user