Browse Source

改了一点点

yzx 2 months ago
parent
commit
d48fddf9b0
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/views/Home/Index.vue
  2. 1 1
      src/views/system/workroomTeacher/dept/index.vue

+ 2 - 2
src/views/Home/Index.vue

@@ -379,8 +379,8 @@ let pieOptionsData = reactive<EChartsOption>(pieOptions) as EChartsOption
 const getGraduateCount = async () => {
   const data = await UserApi.getGraduateCount()
   console.log("毕业达成统计", data);
-  const studentNum = data[0].studentNum; 
-  const graduateNum = data[1].graduateNum; 
+  const studentNum = data.studentNum;
+  const graduateNum = data.graduateNum;
   const options = {
     title: {
       text: null,

+ 1 - 1
src/views/system/workroomTeacher/dept/index.vue

@@ -404,4 +404,4 @@ const fetchImageUrls = async () => {
   height: auto; /* 保持高度自动 */
 }
 
-</style>
+</style>