暂时提交
This commit is contained in:
@@ -23,15 +23,15 @@ export function useColumnCount(onChange = () => {}) {
|
||||
const width = uni.getSystemInfoSync().windowWidth
|
||||
|
||||
let count = 2
|
||||
if (width >= 1000) {
|
||||
count = 5
|
||||
} else if (width >= 750) {
|
||||
count = 4
|
||||
} else if (width >= 500) {
|
||||
count = 3
|
||||
} else {
|
||||
count = 2
|
||||
}
|
||||
// if (width >= 1000) {
|
||||
// count = 5
|
||||
// } else if (width >= 750) {
|
||||
// count = 4
|
||||
// } else if (width >= 500) {
|
||||
// count = 3
|
||||
// } else {
|
||||
// count = 2
|
||||
// }
|
||||
|
||||
if (count !== columnCount.value) {
|
||||
columnCount.value = count
|
||||
|
||||
Reference in New Issue
Block a user