fix: Remove the extra separator when the user dropdown menu is empty. (#4587)

This commit is contained in:
Svend 2024-10-07 18:29:09 +08:00 committed by GitHub
parent 2d019b3c8a
commit 518b869f9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,7 @@ if (enableShortcutKey.value) {
</div> </div>
</div> </div>
</DropdownMenuLabel> </DropdownMenuLabel>
<DropdownMenuSeparator /> <DropdownMenuSeparator v-if="menus?.length" />
<DropdownMenuItem <DropdownMenuItem
v-for="menu in menus" v-for="menu in menus"
:key="menu.text" :key="menu.text"