|
@@ -55,8 +55,11 @@ export default {
|
|
content: this.$t('layouts.usermenu.dialog.content'),
|
|
content: this.$t('layouts.usermenu.dialog.content'),
|
|
onOk: () => {
|
|
onOk: () => {
|
|
return this.$store.dispatch('Logout').then(() => {
|
|
return this.$store.dispatch('Logout').then(() => {
|
|
- // this.$router.push({ name: 'login' })
|
|
|
|
- window.location.href = "https://dev.autocde.com/login";
|
|
|
|
|
|
+ if(window.location.href.startsWith("http://localhost")){
|
|
|
|
+ this.$router.push({ name: 'login' })
|
|
|
|
+ }else{
|
|
|
|
+ window.location.href = "https://dev.autocde.com/login";
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onCancel () {}
|
|
onCancel () {}
|