H5端岗位列表改为两列

This commit is contained in:
冯辉
2026-03-12 15:19:37 +08:00
parent cac0a3470a
commit b8558dfb41

View File

@@ -32,25 +32,21 @@ export function useColumnCount(onChange = () => {}) {
// #endif
let count = 2
// #ifdef H5
// H5端固定显示2列
count = 2
// #endif
// #ifndef H5
if (width >= 1000) {
// #ifdef H5
count = 3 // H5端最多显示3列
// #endif
// #ifndef H5
count = 5
// #endif
} else if (width >= 750) {
// #ifdef H5
count = 3 // H5端最多显示3列
// #endif
// #ifndef H5
count = 4
// #endif
} else if (width >= 500) {
count = 3
} else {
count = 2
}
// #endif
if (count !== columnCount.value) {
columnCount.value = count