mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +01:00
Merge pull request #706 from POPSuL/f/705
Fixed redirecting to web_host after authorization
This commit is contained in:
commit
c540e383b1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user