소스 검색

AI实验室中课程左右按钮居中bug

liyanbo 3 달 전
부모
커밋
18ea6b52bd
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/laboratory/ExperimentalCourses.vue

+ 3 - 1
src/views/laboratory/ExperimentalCourses.vue

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