refactor: per-request mobile detection

This commit is contained in:
Tim
2025-08-08 18:12:40 +08:00
parent 25a64d7666
commit 27a2591904
7 changed files with 47 additions and 41 deletions

View File

@@ -147,7 +147,7 @@
<script>
import { ref, computed, watch, onMounted } from "vue"
import { isMobile } from "~/utils/screen"
import { useIsMobile } from "~/utils/screen"
export default {
@@ -176,6 +176,7 @@ export default {
const loaded = ref(false)
const loading = ref(false)
const wrapper = ref(null)
const isMobile = useIsMobile()
const toggle = () => {
open.value = !open.value