|
|
@@ -197,12 +197,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
- if(res.code==200)
|
|
|
+ if(res.code==200 && res.data)
|
|
|
{
|
|
|
this.paperImageList=res?.data?.pageVOS || [];
|
|
|
const studentCode = res?.data?.studentCode ?? '';
|
|
|
this.studentCode = studentCode ?`【${studentCode}】`:'';
|
|
|
- this.usedCardType=res.data.usedCardType;
|
|
|
+ this.usedCardType=res?.data?.usedCardType ?? 2;
|
|
|
// 重置索引并更新当前试卷数据
|
|
|
// this.currentIndex = 0;
|
|
|
this.UpdateCurrentPaperData();
|
|
|
@@ -241,6 +241,11 @@ export default {
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ this.currentPaperUrl="";//清空试卷地址
|
|
|
+ this.currentDrawData=[];//清空试卷答题数据
|
|
|
+ this.paperImageList = [];
|
|
|
+ this.currentIndex = 0;
|
|
|
+ this.questionList = [];
|
|
|
this.studentCode = '';
|
|
|
this.$nextTick(() => {
|
|
|
this.isLoading=false;
|