{
"devDependencies": {
"nuxt": "3.0.0",
}
}
<script setup>
const screenHeight = ref('')
const documentTitle = ref('')
onMounted(() => {
screenHeight.value = window.screen.height
documentTitle.value = document.title
})
</script>
<template>
<div>
<div>{{ screenHeight }}</div>
<div>{{ documentTitle }}</div>
</div>
</template>