提交 45a1b1f9 authored 作者: lihuihui's avatar lihuihui

updata

上级 ccb35db8
...@@ -180,14 +180,23 @@ export default { ...@@ -180,14 +180,23 @@ export default {
}) })
}, },
goAbilityExam(n) { goAbilityExam(n) {
this.$router.push({ const path = `/exam/answer?type=1&is_create=${n}&tag_id=${this.detail.id}&papersUrl=zy/v2/examination/examination-papers`
path: '/exam/answer', if (this.isWeapp) {
query: { const src = encodeURIComponent(`${window.location.origin}${path}`)
type: 1, wx.miniProgram.navigateTo({
is_create: n, url: `/pages/web/index?src=${src}`
papersUrl: 'zy/v2/examination/examination-papers'
}
}) })
} else {
this.$router.push({ path })
}
// this.$router.push({
// path: '/exam/answer',
// query: {
// type: 1,
// is_create: n,
// papersUrl: 'zy/v2/examination/examination-papers'
// }
// })
}, },
startExam(event, id, cId, isCreate) { startExam(event, id, cId, isCreate) {
this.$router.push({ this.$router.push({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论