用户中心地址返回处理

1.0.0
黄崇栋 6 years ago
parent 7fc6a793f2
commit cd657cc1bd

@ -46,8 +46,7 @@ export default {
url: "/app/userCenter", url: "/app/userCenter",
method: "GET" method: "GET"
}).then(res => { }).then(res => {
// res.url = "http://localhost:8081"; window.open(res.data.url + "?action=logout", "_self");
window.open(res.url + "?action=logout", "_self");
}); });
} }
} }

@ -39,7 +39,7 @@ instance.interceptors.response.use((response) => {
url: '/app/userCenter', url: '/app/userCenter',
method: 'GET' method: 'GET'
}).then(res => { }).then(res => {
window.open(res.url + '?redirect=' + location.origin, '_self') window.open(res.data.url + '?redirect=' + location.origin, '_self')
}) })
} }
++window.once ++window.once

@ -43,7 +43,7 @@ export default {
}).then(res => { }).then(res => {
// res.url = "http://localhost:8080"; // res.url = "http://localhost:8080";
window.open( window.open(
res.url + "?redirect=" + location.origin + "#/center", res.data.url + "?redirect=" + location.origin + "#/center",
"_self" "_self"
); );
}); });

Loading…
Cancel
Save