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"> |
<script setup lang="ts"> |
||||
import { System } from "@/system/index.ts"; |
import { System } from "@/system/index.ts"; |
||||
import { onMounted} from "vue"; |
import { onMounted } from "vue"; |
||||
import { isMobileDevice } from "@/util/device"; |
// import { isMobileDevice } from "@/util/device"; |
||||
|
|
||||
onMounted(() => { |
onMounted(() => { |
||||
new System(); |
new System(); |
||||
isMobile.value = isMobileDevice(); |
// isMobile.value = isMobileDevice(); |
||||
//console.log(isMobile.value); |
//console.log(isMobile.value); |
||||
}); |
}); |
||||
const isMobile = ref<boolean>(false); |
// const isMobile = ref<boolean>(false); |
||||
|
|
||||
</script> |
</script> |
||||
|
|
||||
<template> |
<template> |
||||
<screen v-if="!isMobile"/> |
<screen /> |
||||
<mobile v-else></Mobile> |
<!-- <mobile v-else></Mobile> --> |
||||
</template> |
</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