dengshaobo 1 месяц назад
Родитель
Сommit
c79f53cc1a
2 измененных файлов с 15 добавлено и 1 удалено
  1. 14 0
      src/views/targetImprove/consolidate/index.vue
  2. 1 1
      version.json

+ 14 - 0
src/views/targetImprove/consolidate/index.vue

@@ -222,6 +222,10 @@ export default {
         {
         {
           this.questionList = res.data.records || [];
           this.questionList = res.data.records || [];
         }
         }
+        else
+        {
+          this.questionList = [];
+        }
       });
       });
     },
     },
     // 获取知识点树形数据
     // 获取知识点树形数据
@@ -261,9 +265,19 @@ export default {
         console.log('打印知识点列表数据', res)
         console.log('打印知识点列表数据', res)
         if(res.code == 200)
         if(res.code == 200)
         {
         {
+
           this.mockTreeData=res.data || [];//知识点数据
           this.mockTreeData=res.data || [];//知识点数据
+          if(this.mockTreeData.length==0)
+          {
+            this.questionList=[];
+          }
         
         
         }
         }
+        else
+        {
+          this.mockTreeData=[];
+          this.questionList=[];
+        }
       });
       });
     },
     },
 
 

+ 1 - 1
version.json

@@ -1,5 +1,5 @@
 {
 {
-  "version": "0.1.3_2026_8_25_0",
+  "version": "0.1.3_2026_8_26_0",
   "content": [
   "content": [
     {
     {
       "time": "2024-11-1",
       "time": "2024-11-1",