update:语音加载优化,修复大乱斗未重连比赛服问题
This commit is contained in:
@@ -4,6 +4,7 @@ import { onLoad, onShow, onHide } from "@dcloudio/uni-app";
|
||||
import Container from "@/components/Container.vue";
|
||||
import Matching from "@/components/Matching.vue";
|
||||
import ModalDialog from "@/components/ModalDialog.vue";
|
||||
import audioManager from "@/audioManager";
|
||||
import { matchGameAPI, getBattleAPI } from "@/apis";
|
||||
import { MESSAGETYPESV2 } from "@/constants";
|
||||
import { isLimitError } from "@/util";
|
||||
@@ -146,6 +147,7 @@ onLoad(async (options) => {
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
void audioManager.warmAll();
|
||||
uni.setKeepScreenOn({
|
||||
keepScreenOn: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user