吉安感知网项目-前端
chenyao
2026-02-26 1fafffd842ee6ee1da3c45b35fd8af308d092850
uniapps/work-app/src/hooks/useGlobalWS.js
@@ -1,6 +1,7 @@
import { useUserStore } from "@/store/index.js";
import useAppStore from "../store/modules/app/index.js";
import websocketService from "@/utils/websocket.js";
import { openDialog, allowFloat, getBatteryCapacity } from '@/uni_modules/lgh-dialog'
export function useGlobalWS() {
   const userStore = useUserStore();
@@ -36,6 +37,7 @@
        type: 'incoming'
      };
         openDialog()
      // 转义参数以便在URL中传递
      const encodedParams = encodeURIComponent(JSON.stringify(callParams));