fix(custom): 调整游戏音乐

This commit is contained in:
2024-01-14 20:12:53 +08:00
parent 45e2265bb1
commit 2abffd85bb
2 changed files with 541 additions and 526 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { onBeforeUnmount, onMounted, ref } from 'vue'
import Taro from '@tarojs/taro'
import Lottie from 'lottie-web'
import * as dayjs from 'dayjs'
@@ -388,6 +388,14 @@ const getBetJl = () => {
},
})
}
Taro.useDidHide(() => {
ws.value?.close()
})
onBeforeUnmount(() => {
ws.value?.close()
})
</script>
<template>

File diff suppressed because it is too large Load Diff