| | |
| | | type: 'warning', |
| | | }).then(() => { |
| | | this.$store.dispatch('LogOut').then(() => { |
| | | // this.$router.push({ path: '/login' }) |
| | | const env = import.meta.env.VITE_APP_ENV |
| | | const adminUrl = import.meta.env.VITE_APP_DASHBOARD_URL |
| | | window.location.replace(`${adminUrl}#/login`) |
| | | env === 'development' ? this.$router.push({ path: '/login' }):window.location.replace(`${adminUrl}#/login`) |
| | | }) |
| | | }) |
| | | }, |
| | | jumpMH () { |
| | | const adminUrl = import.meta.env.VITE_APP_DASHBOARD_URL |
| | | window.open(`${adminUrl}#/gatewayPage`, '_blank') |
| | | window.location.href = `${adminUrl}#/gatewayPage` |
| | | }, |
| | | }, |
| | | } |