提交 3b276e72 编写于 作者: guangjun.yang's avatar guangjun.yang

浏览器返回问题

上级 fdff11fa
......@@ -59,7 +59,7 @@ export default {
let { projectId, orderId, returnUrl } = this.$route.query;
this.projectId = projectId || 0;
this.orderId = orderId || 0;
this.returnUrl = returnUrl;
this.returnUrl = sessionStorage.getItem('returnUrl') || returnUrl;
console.log('projectId', '', '', this.projectId, this.orderId, this.returnUrl, decodeURIComponent(this.returnUrl));
// 直接从商品过来的
// if(!this.projectId) {
......@@ -164,7 +164,7 @@ export default {
this.$sendBuriedData({
component_tag: `889#88901`
});
this.returnUrl && location.replace(this.returnUrl);
this.returnUrl && location.replace(decodeURIComponent(this.returnUrl));
// this.returnUrl && (location.href = decodeURIComponent(this.returnUrl));
},
......
......@@ -561,6 +561,7 @@ export default {
this.projectId
}&returnUrl=${encodeURIComponent(this.shareUrl)}`
);
sessionStorage.setItem('returnUrl', encodeURIComponent(this.shareUrl));
window.location.href = jumpUrl;
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册