auto push

This commit is contained in:
kinou-p 2023-06-15 16:47:11 +02:00
parent 23c6011873
commit 268f2d1277

View File

@ -14,7 +14,7 @@ console.log(`Bearer ${localStorage.getItem("token")}`)
let api = axios.create({ let api = axios.create({
// baseURL: 'http://localhost/api', // baseURL: 'http://localhost/api',
baseURL: 'http://localhost/api', baseURL: 'http://' + process.env.BASE_URL + '/api',
headers: { headers: {
// Authorization: `Bearer ${getToken()}`, // Authorization: `Bearer ${getToken()}`,
Authorization : `Bearer ${localStorage.getItem("token")}` Authorization : `Bearer ${localStorage.getItem("token")}`