| | |
| | | allowFloat() |
| | | // #endif |
| | | |
| | | |
| | | useGlobalWS() |
| | | |
| | | onShow(async () => { |
| | |
| | | // #ifdef APP-PLUS |
| | | keepAliveStart() |
| | | // 请求用户允许忽略电池优化(重要:用于保活) |
| | | setTimeout(requestIgnoreBatteryOptimization, 120000) |
| | | setTimeout(requestIgnoreBatteryOptimization, 10000) |
| | | // #endif |
| | | } |
| | | |
| | |
| | | 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(); |
| | |
| | | type: 'incoming' |
| | | }; |
| | | |
| | | openDialog() |
| | | // 转义参数以便在URL中传递 |
| | | const encodedParams = encodeURIComponent(JSON.stringify(callParams)); |
| | | |