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));