fix: lint error

This commit is contained in:
vince
2024-07-14 23:30:33 +08:00
parent a5edb67b12
commit b12266bb90
4 changed files with 31 additions and 27 deletions

View File

@@ -38,7 +38,7 @@ function useMenu() {
function useMenuStyle(menu?: SubMenuProvider) {
const subMenuStyle = computed(() => {
return {
'--menu-level': menu ? menu?.level ?? 0 + 1 : 0,
'--menu-level': menu ? (menu?.level ?? 0 + 1) : 0,
};
});
return subMenuStyle;