提交 c48ee77d authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 0495d1a5
......@@ -37,7 +37,8 @@ export default {
},
handleClick(data) {
if (this.isWeapp) {
const url = `/pages/web/index?src=${window.location.origin}/my/learn/${data.id}?refresh=true`
const path = `${window.location.origin}/my/learn/${data.id}?refresh=true`
const url = `/pages/web/index?src=${encodeURIComponent(path)}`
wx.miniProgram.navigateTo({ url })
} else {
this.$router.push({ name: 'myLearnItem', params: { id: data.id } })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论