|
@@ -225,7 +225,9 @@ watch(activeButton, () => {
|
|
|
|
|
|
|
|
// 中间卡片居中显示和放大效果
|
|
// 中间卡片居中显示和放大效果
|
|
|
const middleBoxWidth = ()=> {
|
|
const middleBoxWidth = ()=> {
|
|
|
- scrollToCenter(middleBox.value, activeButton.value);
|
|
|
|
|
|
|
+ scrollToCenter(middleBox.value, activeButton.value, {
|
|
|
|
|
+ selector: '.slide-item'
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取课程数据函数优化
|
|
// 获取课程数据函数优化
|