提交 1773b217 authored 作者: lihuihui's avatar lihuihui

updata

上级 8a2c6a36
...@@ -27,20 +27,19 @@ export default { ...@@ -27,20 +27,19 @@ export default {
}, },
methods: { methods: {
cardChange(e) { cardChange(e) {
console.log(e) const path = `/exam/answer?${JSON.stringify(e).replace(/":"/gi, '=').replace(/","/gi, '&').replace(/({")|("})/gi, '')}`
// const path = `/exam/answer?${e}` if (this.isWeapp) {
// if (this.isWeapp) { const src = encodeURIComponent(`${window.location.origin}${path}`)
// const src = encodeURIComponent(`${window.location.origin}${path}`) wx.miniProgram.navigateTo({
// wx.miniProgram.navigateTo({ url: `/pages/web/index?src=${src}`
// url: `/pages/web/index?src=${src}`
// })
// } else {
// this.$router.push({ path })
// }
this.$router.push({
path: '/exam/answer',
query: e
}) })
} else {
this.$router.push({ path })
}
// this.$router.push({
// path: '/exam/answer',
// query: e
// })
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论