@ -46,8 +46,7 @@ export default {
url: "/app/userCenter",
method: "GET"
}).then(res => {
// res.url = "http://localhost:8081";
window.open(res.url + "?action=logout", "_self");
window.open(res.data.url + "?action=logout", "_self");
});
}
@ -39,7 +39,7 @@ instance.interceptors.response.use((response) => {
url: '/app/userCenter',
method: 'GET'
window.open(res.url + '?redirect=' + location.origin, '_self')
window.open(res.data.url + '?redirect=' + location.origin, '_self')
})
++window.once
@ -43,7 +43,7 @@ export default {
// res.url = "http://localhost:8080";
window.open(
res.url + "?redirect=" + location.origin + "#/center",
res.data.url + "?redirect=" + location.origin + "#/center",
"_self"
);