This commit is contained in:
2025-12-24 15:59:42 +08:00
parent 5461dc276c
commit 3f0f349adf
7 changed files with 22 additions and 454 deletions

View File

@@ -53,24 +53,18 @@ export function useColumnCount(onChange = () => {}) {
onMounted(() => {
columnCount.value = 2
calcColumn()
try {
// if (process.client) {
window.addEventListener('resize', calcColumn)
// }
} catch (error) {
}
// if (process.client) {
window.addEventListener('resize', calcColumn)
// }
})
onUnmounted(() => {
try {
// if (process.client) {
window.removeEventListener('resize', calcColumn)
// }
} catch (error) {
}
// if (process.client) {
window.removeEventListener('resize', calcColumn)
// }
})