fix: side menu display incorrectly

This commit is contained in:
Methapon Metanipat 2024-08-19 11:02:30 +07:00
parent bce8e773e9
commit b98a5a9efe

View file

@ -1616,7 +1616,8 @@ watch(
> >
<div class="q-py-md q-pl-md q-pr-sm"> <div class="q-py-md q-pl-md q-pr-sm">
<SideMenu <SideMenu
:menu="[ :menu="
[
{ {
name: $t('formDialogTitleInformation'), name: $t('formDialogTitleInformation'),
anchor: 'info-information', anchor: 'info-information',
@ -1629,11 +1630,17 @@ watch(
name: $t('formDialogTitleAddressPersonnel'), name: $t('formDialogTitleAddressPersonnel'),
anchor: 'info-address', anchor: 'info-address',
}, },
].concat(
!!formData.userType
? [
{ {
name: $t('formDialogTitleByType'), name: $t('formDialogTitleByType'),
anchor: 'info-work', anchor: 'info-work',
}, },
]" ]
: [],
)
"
background="transparent" background="transparent"
:active="{ :active="{
background: 'hsla(var(--blue-6-hsl) / .2)', background: 'hsla(var(--blue-6-hsl) / .2)',
@ -1824,7 +1831,8 @@ watch(
<div class="col"> <div class="col">
<div style="position: sticky; top: 0" class="q-pa-sm"> <div style="position: sticky; top: 0" class="q-pa-sm">
<SideMenu <SideMenu
:menu="[ :menu="
[
{ {
name: $t('formDialogTitleInformation'), name: $t('formDialogTitleInformation'),
anchor: 'form-information', anchor: 'form-information',
@ -1837,11 +1845,17 @@ watch(
name: $t('formDialogTitleAddressPersonnel'), name: $t('formDialogTitleAddressPersonnel'),
anchor: 'form-address', anchor: 'form-address',
}, },
].concat(
!!formData.userType
? [
{ {
name: $t('formDialogTitleByType'), name: $t('formDialogTitleByType'),
anchor: 'form-work', anchor: 'info-work',
}, },
]" ]
: [],
)
"
background="transparent" background="transparent"
:active="{ :active="{
background: 'hsla(var(--blue-6-hsl) / .2)', background: 'hsla(var(--blue-6-hsl) / .2)',