add app mode

This commit is contained in:
jxxghp
2024-06-13 17:30:50 +08:00
parent 7f2f7b100b
commit 1fc964ec16
14 changed files with 184 additions and 18 deletions

View File

@@ -16,6 +16,11 @@ const route = useRoute()
// 显示器宽度
const display = useDisplay()
// APP
const appMode = computed(() => {
return localStorage.getItem('MP_APPMODE') == '1' && display.mdAndDown.value
})
// 当前标签
const activeTab = ref(route.query.tab)
@@ -438,6 +443,7 @@ onBeforeMount(async () => {
app
appear
@click="SearchDialog = true"
:class="{ 'mb-12': appMode }"
/>
<VDialog
v-if="SearchDialog"