提交 28b3b974 编写于 作者: guangjun.yang's avatar guangjun.yang

不用带returnUrl

上级 c524f7a7
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
Toast('请前往云鹊医APP学习课程'); Toast('请前往云鹊医APP学习课程');
return; return;
} }
let jumpUrl = getWebPageUrl(`profexam/#/course-detail?courseId=${courseId}&projectId=${this.projectId}&returnUrl=${encodeURIComponent(location.href)}`); let jumpUrl = getWebPageUrl(`profexam/#/course-detail?courseId=${courseId}&projectId=${this.projectId}`);
window.location.href = jumpUrl; window.location.href = jumpUrl;
}, },
......
...@@ -418,7 +418,7 @@ export default { ...@@ -418,7 +418,7 @@ export default {
this.shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`); this.shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`);
location.replace(this.shareUrl); location.replace(this.shareUrl);
} }
sessionStorage.setItem('returnUrl', this.shareUrl); localStorage.setItem('returnUrl', this.shareUrl);
const { token, info } = this.$store.state.user; const { token, info } = this.$store.state.user;
this.token = getCookie("token") || token; this.token = getCookie("token") || token;
...@@ -688,11 +688,8 @@ export default { ...@@ -688,11 +688,8 @@ export default {
// }); // });
this.commonCheckToken(() => { this.commonCheckToken(() => {
let jumpUrl = getWebPageUrl( let jumpUrl = getWebPageUrl(
`profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${ `profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${this.projectId}`
this.projectId
}&returnUrl=${encodeURIComponent(this.shareUrl)}`
); );
// sessionStorage.setItem('returnUrl', encodeURIComponent(this.shareUrl));
window.location.href = jumpUrl; window.location.href = jumpUrl;
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册