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