提交 810b53ca authored 作者: lihuihui's avatar lihuihui

updata

上级 4e89462e
......@@ -137,12 +137,21 @@ export default {
},
methods: {
courseNodeDetail(id) {
this.$router.push({
path: '/exam/courseNode',
query: {
id: id
}
})
const path = `/exam/courseNode?id=${id}`
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.push({
// path: '/exam/courseNode',
// query: {
// id: id
// }
// })
},
getCourseList() {
courseApi.getCourseList().then(response => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论