src/page/index/top/index.vue
@@ -102,9 +102,11 @@ type: 'warning', }).then(() => { this.$store.dispatch('LogOut').then(() => { // this.$router.push({ path: '/login' }) const env = import.meta.env.VITE_APP_ENV console.log(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`) }) }) },