|
|
@@ -5,7 +5,7 @@
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
import Fly from './components/FlyMoitor.vue'
|
|
|
-import { ref, onUnmounted , onMounted} from 'vue'
|
|
|
+import { ref, onUnmounted, onMounted } from 'vue'
|
|
|
const flydb = ref([ { x: 0, y: 0 }, { x: 0, y: 0 } ])
|
|
|
|
|
|
const randomFlyDb = () => [
|
|
|
@@ -20,9 +20,9 @@ const timer = setInterval(() => {
|
|
|
onMounted(() => {
|
|
|
const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
|
|
|
const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
|
|
|
- if(isIOS || isAndroid){
|
|
|
+ if (isIOS || isAndroid) {
|
|
|
alert('建议用电脑打开')
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
onUnmounted(() => {
|