Refactor navigator utility functions and add isPWA check

This commit is contained in:
jxxghp
2024-10-19 10:39:31 +08:00
parent b3f616ddc6
commit 76a487854b
16 changed files with 38 additions and 82 deletions

View File

@@ -16,9 +16,7 @@ const route = useRoute()
const display = useDisplay()
// APP
const appMode = computed(() => {
return localStorage.getItem('MP_APPMODE') != '0' && display.mdAndDown.value
})
const appMode = inject('appMode')
// 当前标签
const activeTab = ref(route.query.tab)