add var isMobile

This commit is contained in:
zyxkad 2022-08-20 22:09:45 -06:00
parent 73fb1b250b
commit 3f20ebcd05
No known key found for this signature in database
GPG Key ID: 75D46E883711CD87

View File

@ -23,8 +23,10 @@
import { ref, computed } from 'vue'
import { RouterLink, RouterView } from 'vue-router'
const navExpanded = ref(true)
const navExpandedAni = ref(true)
const isMobile = window.innerHeight > window.innerWidth
const navExpanded = ref(!isMobile)
const navExpandedAni = ref(!isMobile)
const accounts = ref([
{'email': 'user@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash']},