diff --git a/frontend/plugins/axios.ts b/frontend/plugins/axios.ts index 76cb277..2ac856b 100644 --- a/frontend/plugins/axios.ts +++ b/frontend/plugins/axios.ts @@ -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 + } }; }); diff --git a/frontend/public/sw.js b/frontend/public/sw.js index acebd1f..3b750c8 100644 --- a/frontend/public/sw.js +++ b/frontend/public/sw.js @@ -5,7 +5,7 @@ precacheAndRoute(self.__WB_MANIFEST); // Version -const VERSION = "1.0.3"; +const VERSION = "1.0.4"; // Service Worker Installation self.addEventListener("install", (event) => {