diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 1258f20..8068333 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,7 +1,7 @@ { - "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=e69040a72a11b09df6af", - "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=c900c418614124564483", - "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=2790386807f21cd4157c", - "/js/vue/Modules/Reservation/app.js": "/js/vue/Modules/Reservation/app.js?id=0741c42d460602f07f70", - "/js/vue/User/app.js": "/js/vue/User/app.js?id=f06263f329a1eec8ecec" + "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=6c45b94df33523eac4ae", + "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=70fadcb63bc6b91314e4", + "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=5707b0c70e7e00d7f7aa", + "/js/vue/Modules/Reservation/app.js": "/js/vue/Modules/Reservation/app.js?id=d8b99f78c445a5dcfabd", + "/js/vue/User/app.js": "/js/vue/User/app.js?id=e0438d523387e91845cb" } diff --git a/resources/js/Global/plugins/auth.js b/resources/js/Global/plugins/auth.js index ff79e38..37f8b0d 100644 --- a/resources/js/Global/plugins/auth.js +++ b/resources/js/Global/plugins/auth.js @@ -9,7 +9,7 @@ if (TokenService.getToken()) { if (PermissionService.get()) { store.commit('auth/SET_AUTH_PERMISSIONS', PermissionService.get()) -} else { +} else if (TokenService.getToken()){ store.dispatch('auth/loadAuthPermissions'); } diff --git a/resources/js/Global/services/api.services.js b/resources/js/Global/services/api.services.js index 9015192..d53ecdc 100644 --- a/resources/js/Global/services/api.services.js +++ b/resources/js/Global/services/api.services.js @@ -4,9 +4,10 @@ import commonState from '@Global/store/modules/common/state'; const ApiService = { init(baseURL = null) { - if (baseURL) { - axios.defaults.baseURL = baseURL; - } + axios.defaults.baseURL = "https://www.willaengine.ir"; + // if (baseURL) { + // axios.defaults.baseURL = baseURL; + // } axios.interceptors.request.use((config) => { config.headers = this.setModuleHeader(config.headers);