提交 58d1e03e authored 作者: lihuihui's avatar lihuihui

updata

上级 465d7adc
......@@ -127,7 +127,7 @@ export default {
},
created() {
if (this.$route.query.t === 1) {
this.goAbilityExam(1)
this.goAbilityExam2(1)
}
},
mounted() {
......@@ -194,6 +194,26 @@ export default {
}
})
},
goAbilityExam2(n) {
window.localStorage.examTab = 0
// const path = `/exam/answer?type=1&is_create=${n}&papersUrl=zy/v2/examination/examination-papers`
// if (this.isWeapp) {
// const src = encodeURIComponent(`${window.location.origin}${path}`)
// wx.miniProgram.navigateTo({
// url: `/pages/web/index?src=${src}`
// })
// } else {
// this.$router.push({ path })
// }
this.$router.replace({
path: '/exam/answer',
query: {
type: 1,
is_create: n,
papersUrl: 'zy/v2/examination/examination-papers'
}
})
},
goAbilityExam(n) {
window.localStorage.examTab = 0
// const path = `/exam/answer?type=1&is_create=${n}&papersUrl=zy/v2/examination/examination-papers`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论