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