|
@ -1,6 +1,6 @@ |
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
import { useDeviceStore } from 'stores/deviceStore' |
|
|
import { useDeviceStore } from 'stores/deviceStore' |
|
|
import { ref } from 'vue' |
|
|
|
|
|
|
|
|
import { computed, ref } from 'vue' |
|
|
|
|
|
|
|
|
const deviceStore = useDeviceStore() |
|
|
const deviceStore = useDeviceStore() |
|
|
const deviceInfo = ref(deviceStore.deviceInfo) |
|
|
const deviceInfo = ref(deviceStore.deviceInfo) |
|
@ -16,6 +16,8 @@ const width = Math.floor(screenInfo.width * screenInfo.pixelRatio) |
|
|
const height = Math.floor(screenInfo.height * screenInfo.pixelRatio) |
|
|
const height = Math.floor(screenInfo.height * screenInfo.pixelRatio) |
|
|
const screenWidth = ref(width) |
|
|
const screenWidth = ref(width) |
|
|
const screenHeight = ref(height) |
|
|
const screenHeight = ref(height) |
|
|
|
|
|
|
|
|
|
|
|
const webVersion = computed(() => __APP_VERSION__) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
@ -35,6 +37,9 @@ const screenHeight = ref(height) |
|
|
<div class="device-ul"> |
|
|
<div class="device-ul"> |
|
|
<div>设备屏幕尺寸:{{ screenWidth }} x {{ screenHeight }}</div> |
|
|
<div>设备屏幕尺寸:{{ screenWidth }} x {{ screenHeight }}</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="device-ul"> |
|
|
|
|
|
<div>版本信息:{{ `${deviceInfo.appVersion}-${webVersion}` }}</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|