refactor(Home): 优化 MineTask 组件中的滑动切换逻辑

- 移除了不必要的 console.log 语句
- 优化了 slideChange 函数,提高了代码可读性和性能
This commit is contained in:
陈昱达
2025-05-26 17:58:17 +08:00
parent ef854a51f8
commit 44a1f39b82

View File

@@ -25,9 +25,7 @@ watch(
}
);
function slideChange() {
console.log(1);
setTimeout(() => {
console.log(swiper.value.$el.style.height);
// 获取高度
swiper.value.$el.style.height = questionComat.value[active.value].$el.scrollHeight + 30 + 'px';
swiper.value.resize();