mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-11 05:07:28 +08:00
refactor: per-request mobile detection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user