소스 검색

优化切换tab

liushengqiang 2 년 전
부모
커밋
297edaa34a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/home/component/CurrentStudent.tsx

+ 2 - 2
src/views/home/component/CurrentStudent.tsx

@@ -65,7 +65,7 @@ export default defineComponent({
       if (myChart) {
         myChart.dispose();
       }
-      myChart = echarts.init(echratsRef.value, {}, { renderer: 'svg' });
+      myChart = echarts.init(echratsRef.value);
       const option: EChartsOption = {
         title: {
           text: list.value
@@ -77,7 +77,7 @@ export default defineComponent({
           subtext: '在读人数',
           textAlign: 'center',
           left: '48%',
-          top: '38%',
+          top: '36%',
           textStyle: {
             fontSize: '22px',
             fontWeight: 'bold',