优化顶部导航更多菜单路由截取

This commit is contained in:
RuoYi
2026-03-12 14:57:59 +08:00
parent 543b131dd3
commit 2135ce3555
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ const activeMenu = computed(() => {
function setVisibleNumber() {
const width = document.body.getBoundingClientRect().width / 3
visibleNumber.value = parseInt(width / 85)
visibleNumber.value = Math.max(1, parseInt(width / 85))
}
function handleSelect(key, keyPath) {