src/store/modules/user.js
@@ -273,12 +273,17 @@ getRoutes(tenantId).then(res => { const data = res.data.data; let menu = deepClone(data); menu.forEach(ele => formatPath(ele, true)); menu?.forEach(ele => formatPath(ele, true)); commit('SET_MENU', menu); commit('SET_MENU_ALL', menu); dispatch('GetButtons'); resolve(menu); }); }).catch(err =>{ dispatch('LogOut').then(()=>{ const adminUrl = import.meta.env.VITE_APP_DASHBOARD_URL window.location.replace(`${adminUrl}#/login`) }) }) }); }, GetButtons({ commit }) {