mirror of
https://gitcode.com/yangzongzhuan/RuoYi-Vue3.git
synced 2026-05-23 03:18:36 +00:00
优化顶部导航更多菜单路由截取
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user