Forráskód Böngészése

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

Svend 5 hónapja
szülő
commit
518b869f9d

+ 1 - 1
packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue

@@ -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"