fix: layout drawer on xs
This commit is contained in:
parent
fd5532b46a
commit
e8b273eabf
1 changed files with 6 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ const userStore = useUserStore();
|
||||||
const rawOption = ref();
|
const rawOption = ref();
|
||||||
const canvasModal = ref(false);
|
const canvasModal = ref(false);
|
||||||
|
|
||||||
const leftDrawerOpen = ref(true);
|
const leftDrawerOpen = ref<boolean>(false);
|
||||||
const leftDrawerMini = ref(false);
|
const leftDrawerMini = ref(false);
|
||||||
|
|
||||||
const filterUnread = ref(false);
|
const filterUnread = ref(false);
|
||||||
|
|
@ -143,6 +143,7 @@ watch(
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fetchListMyBranch(getUserId() ?? '');
|
await fetchListMyBranch(getUserId() ?? '');
|
||||||
|
leftDrawerOpen.value = $q.screen.gt.xs ? true : false;
|
||||||
|
|
||||||
const getCurLang = localStorage.getItem('currentLanguage');
|
const getCurLang = localStorage.getItem('currentLanguage');
|
||||||
if (getCurLang) currentLanguage.value = getCurLang;
|
if (getCurLang) currentLanguage.value = getCurLang;
|
||||||
|
|
@ -260,7 +261,10 @@ onMounted(async () => {
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<div class="flex items-center" style="gap: var(--size-1)">
|
<div class="flex items-center" style="gap: var(--size-1)">
|
||||||
<template v-for="(item, i) in utilsStore.currentTitle.path">
|
<template
|
||||||
|
v-for="(item, i) in utilsStore.currentTitle.path"
|
||||||
|
:key="i"
|
||||||
|
>
|
||||||
<span
|
<span
|
||||||
class="text-caption cursor-pointer"
|
class="text-caption cursor-pointer"
|
||||||
@click="item.handler?.()"
|
@click="item.handler?.()"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue