提交 1cfbc7a8 authored 作者: zhengyadong's avatar zhengyadong

修改

上级 4963c70b
......@@ -7,7 +7,7 @@
<div class="answer-result right" v-if="showAns&&ansStatus">
<img src="@/assets/img/practice/right-result.png" alt="">回答正确
</div>
正确答案:{{answer.replace(/,/g,'')}}
正确答案:{{answer&&answer.replace(/,/g,'')}}
</div>
<div class="answer-analysis">
<span class="analysis-t">解析:</span>
......
......@@ -45,7 +45,7 @@ export default {
videoUrl:videoUrl,
getVideo:getVideo,
imgUrl:imgUrl,
open:false,
open:true,
autoHeight:null,
slotHeight:null,
videoOpen:false,
......
......@@ -31,9 +31,9 @@ export const videoUrl = function(link){
return `${process.env.BASE_API}/file/file/download/${link}`
}
export const getVideo = function(data){
return `${process.env.BASE_API}file/${data}/index.m3u8`
return `${process.env.BASE_API}/file/${data}/index.m3u8`
}
export const imgUrl = function(link){
// return `${process.env.BASE_API}/file/file/?fileName=${link}&isOnLine=true`
return `${process.env.BASE_API}file/${link}`
return `${process.env.BASE_API}/file/${link}`
}
......@@ -293,8 +293,8 @@ export default {
},
_changeScore(answer,type){
let num = 0
this.rightAns.indexOf(type) != -1 && (num += 1)
this.userAns.indexOf(type) != -1 && (num += 2)
this.rightAns&&this.rightAns.indexOf(type) != -1 && (num += 1)
this.userAns&&this.userAns.indexOf(type) != -1 && (num += 2)
this.currentStatus[answer] = num
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论