浏览代码

改了一点点

yzx 2 月之前
父节点
当前提交
d48fddf9b0
共有 2 个文件被更改,包括 3 次插入3 次删除
  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>