fixe page styles

This commit is contained in:
RockYang
2024-06-05 18:08:23 +08:00
parent 3c70c8ae59
commit c02661ea29
17 changed files with 95 additions and 78 deletions

View File

@@ -187,7 +187,7 @@ onMounted(() => {
httpGet("/api/menu/list").then(res => {
mainNavs.value = res.data
// 根据窗口的高度计算应该显示多少菜单
const rows = Math.floor((window.innerHeight - 90) / 60)
const rows = Math.floor((window.innerHeight - 100) / 90)
if (res.data.length > rows) {
mainNavs.value = res.data.slice(0, rows)
moreNavs.value = res.data.slice(rows)