Change version
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user