Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | }).then(() => { |
| | | this.$store.dispatch('LogOut').then(() => { |
| | | const env = import.meta.env.VITE_APP_ENV |
| | | console.log(env); |
| | | const adminUrl = import.meta.env.VITE_APP_DASHBOARD_URL |
| | | env === 'development' ? this.$router.push({ path: '/login' }):window.location.replace(`${adminUrl}#/login`) |
| | | |
| | | }) |
| | | }) |
| | | }, |
| | |
| | | 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 }) { |