打卡范围、项目级页面修改
This commit is contained in:
@ -11,11 +11,13 @@ const data = ref([]);
|
||||
const deviceId = ref('');
|
||||
const videoDialogRef = ref(null);
|
||||
let token = 'Bearer '+ getToken()
|
||||
let ws = new ReconnectingWebSocket( import.meta.env.VITE_APP_BASE_WS_API + '?Authorization='+token+'&clientid='+import.meta.env.VITE_APP_CLIENT_ID);
|
||||
let ws = new ReconnectingWebSocket( import.meta.env.VITE_APP_BASE_WS_API + '?Authorization='+token+'&clientid='+import.meta.env.VITE_APP_CLIENT_ID+'&projectId='+'1897160897167638529');
|
||||
// 连接ws
|
||||
const connectWs = () => {
|
||||
ws.onopen = (e) => {
|
||||
console.log('this.gateWay', e);
|
||||
// let message ={
|
||||
// projectId:'1897160897167638529',
|
||||
// }
|
||||
// ws.send(JSON.stringify(message));
|
||||
ws.onmessage = (e) => {
|
||||
console.log('ws', e);
|
||||
|
Reference in New Issue
Block a user