update 对接底部数据,添加地图公共less
This commit is contained in:
+5
-3
@@ -1,10 +1,12 @@
|
||||
import { onMounted, onUnmounted, ref } from 'vue';
|
||||
|
||||
const path = 'ws://192.168.1.16:7098/websocket/watchMonitor';
|
||||
//健康监测工具报警
|
||||
export const basicPath = 'ws://192.168.1.16:7098/websocket/watchMonitor';
|
||||
//应急求助
|
||||
export const emergencyPath = 'ws://192.168.1.16:7011/websocket/emergency';
|
||||
const token =
|
||||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWRlbnRpZmllciI6ImU5Y2EyM2Q2OGQ4ODRkNGViYjE5ZDA3ODg5NzI3ZGFlIiwiZXhwIjoxNzAyNjA0MDI3fQ.MYf9yUnXO0RTFL4u96pN1Z2mBwtXU5W-QlxDgoAsoOw';
|
||||
|
||||
export function useSocket() {
|
||||
export function useSocket(path = basicPath) {
|
||||
const socket = ref();
|
||||
let socketData = ref({});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user