| | |
| | | import { useGlobalWS } from '@/hooks/useGlobalWS.js' |
| | | // #ifdef APP-PLUS |
| | | import { keepAliveStart, requestIgnoreBatteryOptimization } from '@/uni_modules/keep-app' |
| | | import { openDialog, allowFloat,getBatteryCapacity } from '@/uni_modules/lgh-dialog' |
| | | import { openDialog, allowFloat, getBatteryCapacity } from '@/uni_modules/lgh-dialog' |
| | | // #endif |
| | | |
| | | const appStore = useAppStore() |
| | |
| | | // testKeep() |
| | | |
| | | // 开启悬浮窗 |
| | | allowFloat() |
| | | // allowFloat() |
| | | // 假设五秒后来电 |
| | | setTimeout(() => { |
| | | openDialog() |
| | | }, 5000) |
| | | // #endif |
| | | |
| | | useGlobalWS() |
| | |
| | | // 初始化系统信息 |
| | | appStore.initSystemInfo() |
| | | // #ifdef APP-PLUS |
| | | keepAliveStart() |
| | | // keepAliveStart() |
| | | // 请求用户允许忽略电池优化(重要:用于保活) |
| | | setTimeout(requestIgnoreBatteryOptimization, 2000) |
| | | // setTimeout(requestIgnoreBatteryOptimization, 2000) |
| | | // #endif |
| | | if (!userStore.userInfo) { |
| | | //不存在则跳转至登录页 |
| | |
| | | background: transparent !important; |
| | | } |
| | | </style> |
| | | |