0
0
Fork 0

Update the axios instance to properly request to the API

This commit is contained in:
Oliver Akins 2022-07-31 18:07:21 -06:00
parent 50434f975c
commit 822abc3fae
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -17,11 +17,12 @@ const app = new Vue({
async tryLogin() {
try {
let r = await axios.post(
`/login`,
`./login`,
undefined,
{ auth: this.login }
);
this.api = axios.create({
baseURL: window.location.href,
validateStatus: null,
auth: this.login,
});