diff --git a/hook/useColumnCount.js b/hook/useColumnCount.js index d96017e..c0f075a 100644 --- a/hook/useColumnCount.js +++ b/hook/useColumnCount.js @@ -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