This commit is contained in:
Nukeap committed 2025-02-09 09:15:15 +03:00
1 parent bdc2f08d38
commit 2c6e15e480
15 files changed
+230 -10

No files matched your search

+3
View File
@@ -45,9 +45,12 @@ axiosApiInstance.defaults.headers.common['Authorization'] = `Bearer ${localStora
axiosApiInstance.interceptors.request.use(config => {
const access = localStorage.getItem('access');
if (access) {
config.headers = {
'Authorization': `Bearer ${access}`,
}
}
return config;
}, error => {
+1
View File
@@ -36,6 +36,7 @@ export default defineConfig({
],
},
server: {
host: '0.0.0.0',
port: 3000,
},
})