Commit eb4c93a2 authored by FE-安焕焕's avatar FE-安焕焕 👣

修改跳转地址

parent 6a31eba1
...@@ -5,7 +5,7 @@ export const goUrlExtends = { ...@@ -5,7 +5,7 @@ export const goUrlExtends = {
// 商城地址 // 商城地址
const returnUrl = this.getReturnUrl(); const returnUrl = this.getReturnUrl();
if (returnUrl) { if (returnUrl) {
window.location.replace = `${returnUrl}`; window.location.replace(`${returnUrl}`);
return; return;
} }
this.$router.replace({ name: 'home' }); this.$router.replace({ name: 'home' });
...@@ -13,7 +13,7 @@ export const goUrlExtends = { ...@@ -13,7 +13,7 @@ export const goUrlExtends = {
goOrderList() { goOrderList() {
const returnUrl = this.getReturnUrl(); const returnUrl = this.getReturnUrl();
if (returnUrl) { if (returnUrl) {
window.location.replace = `${returnUrl}/orderList`; window.location.replace(`${returnUrl}/orderList`);
return; return;
} }
this.$router.replace({ name: 'orderList' }, 'sessionStorage'); this.$router.replace({ name: 'orderList' }, 'sessionStorage');
...@@ -22,7 +22,7 @@ export const goUrlExtends = { ...@@ -22,7 +22,7 @@ export const goUrlExtends = {
const returnUrl = this.getReturnUrl(); const returnUrl = this.getReturnUrl();
const orderNo = localStorage.get('orderNo')?.orderNo; const orderNo = localStorage.get('orderNo')?.orderNo;
if (returnUrl) { if (returnUrl) {
window.location.replace = `${returnUrl}/orderDetail?orderNo=${orderNo}`; window.location.replace(`${returnUrl}/orderDetail?orderNo=${orderNo}`);
return; return;
} }
this.$router.push({ this.$router.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment