refactor(home): 优化首页布局计算
- 移除了未使用的 leftColumn 计算属性 - 删除了多余的注释和空行,提高代码可读性
This commit is contained in:
parent
1bd7cc04f6
commit
2db6406531
@ -70,11 +70,9 @@ function onRefresh() {
|
|||||||
refreshing.value = true
|
refreshing.value = true
|
||||||
loadData()
|
loadData()
|
||||||
}
|
}
|
||||||
// 分列计算
|
|
||||||
const leftColumn = computed(() => {
|
const leftColumn = computed(() => {
|
||||||
return list.value.filter((_, index) => index % 2 === 0)
|
return list.value.filter((_, index) => index % 2 === 0)
|
||||||
})
|
})
|
||||||
|
|
||||||
const rightColumn = computed(() => {
|
const rightColumn = computed(() => {
|
||||||
return list.value.filter((_, index) => index % 2 === 1)
|
return list.value.filter((_, index) => index % 2 === 1)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user