refactor(Home): 优化 MineTask 组件中的滑动切换逻辑
- 移除了不必要的 console.log 语句 - 优化了 slideChange 函数,提高了代码可读性和性能
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user