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

View File

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