From b8558dfb41de11360b67aae7f41804a261d0cdfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E8=BE=89?= Date: Thu, 12 Mar 2026 15:19:37 +0800 Subject: [PATCH] =?UTF-8?q?H5=E7=AB=AF=E5=B2=97=E4=BD=8D=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=A4=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hook/useColumnCount.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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