Merge pull request #706 from POPSuL/f/705

Fixed redirecting to web_host after authorization
This commit is contained in:
Denis Gukov 2021-08-31 04:05:43 +05:00 committed by GitHub
commit c540e383b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ export default {
async created() {
if (this.isAuthenticated()) {
document.location = '/';
document.location = document.baseURI;
}
},
@ -115,7 +115,7 @@ export default {
},
});
document.location = '/';
document.location = document.baseURI;
} catch (err) {
console.log(err);
if (err.response.status === 401) {