Explorar el Código

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

liyanbo hace 3 meses
padre
commit
18ea6b52bd
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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'
+  });
 }
 
 // 获取课程数据函数优化