Change version

This commit is contained in:
marzban-dev
2025-03-14 19:39:57 +03:30
parent a9aa7a0308
commit 1ffa4f4929
2 changed files with 6 additions and 8 deletions
+5 -7
View File
@@ -5,12 +5,10 @@ import Logger from "~/tools/logger";
export default defineNuxtPlugin(() => {
const config = useRuntimeConfig();
const { token, logout } = useAuth();
const { token } = useAuth();
const axios = axiosOriginal.create({
// timeout: 30000,
// timeoutErrorMessage: "فرآیند بیش از حد انتظار طول کشید",
baseURL: config.public.API_BASE_URL,
baseURL: config.public.API_BASE_URL
});
axios.interceptors.request.use((config) => {
@@ -30,7 +28,7 @@ export default defineNuxtPlugin(() => {
(response) => {
return response;
},
async function (error) {
async function(error) {
await Logger.axiosErrorLog(error);
// if (error.status === 401) {
@@ -43,7 +41,7 @@ export default defineNuxtPlugin(() => {
return {
provide: {
axios,
},
axios
}
};
});