添加socket的userId

This commit is contained in:
熊丽君
2021-08-17 10:09:38 +08:00
parent bff46269db
commit af6cafafec
3 changed files with 7 additions and 4 deletions

View File

@ -97,8 +97,7 @@ import { send } from '@/api/service';
export default {
data() {
return {
path:
'ws://192.168.0.125:1919/webStock/' + localStorage.getItem('userId'),
path: 'ws://192.168.0.125:1919/webStock/' + this.$store.state.user.userId,
socket: '',
userid: '23941',
// 待发送信息