mirror of https://gitee.com/godoos/godoos.git
6 changed files with 120 additions and 31 deletions
@ -1,18 +1,18 @@ |
|||
<script setup lang="ts"> |
|||
import { System } from "@/system/index.ts"; |
|||
import { onMounted} from "vue"; |
|||
import { isMobileDevice } from "@/util/device"; |
|||
import { onMounted } from "vue"; |
|||
// import { isMobileDevice } from "@/util/device"; |
|||
|
|||
onMounted(() => { |
|||
new System(); |
|||
isMobile.value = isMobileDevice(); |
|||
// isMobile.value = isMobileDevice(); |
|||
//console.log(isMobile.value); |
|||
}); |
|||
const isMobile = ref<boolean>(false); |
|||
// const isMobile = ref<boolean>(false); |
|||
|
|||
</script> |
|||
|
|||
<template> |
|||
<screen v-if="!isMobile"/> |
|||
<mobile v-else></Mobile> |
|||
<screen /> |
|||
<!-- <mobile v-else></Mobile> --> |
|||
</template> |
|||
|
@ -0,0 +1,19 @@ |
|||
<template> |
|||
<div class="mobile-template"> |
|||
111 |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
|
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.mobile-template { |
|||
position: absolute; |
|||
z-index: 9999; |
|||
width: 100vw; |
|||
height: 100vh; |
|||
background-color: #fff; |
|||
} |
|||
</style> |
Loading…
Reference in new issue