From 729e2b058c8435ac19396d7a093ab356cc609579 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 20 Jul 2022 17:07:24 -0400 Subject: [PATCH] Fix language selection by using window.axios rather than http in the vuex mutation --- resources/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/app.js b/resources/js/app.js index af2eb7d..7189498 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -106,7 +106,7 @@ const store = createStore({ mutations: { setAppLang(state, value) { state.appLang = value; - Vue.http.get(`/language/${value}`); + window.axios.get(`/language/${value}`); }, setFirstLoad(state, value) {