mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
correcting duplicate path error (#482)
This commit is contained in:
parent
8d4f2a361f
commit
85468ffa0c
@ -105,9 +105,11 @@ export default {
|
|||||||
warehouseUuid: this.warehouseUuid
|
warehouseUuid: this.warehouseUuid
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
if (this.$route.name !== 'Dashboard') {
|
||||||
|
this.$router.push({ path: '/' })
|
||||||
|
}
|
||||||
this.$store.dispatch('listDashboard', response.uuid)
|
this.$store.dispatch('listDashboard', response.uuid)
|
||||||
})
|
})
|
||||||
this.$router.push({ path: '/' })
|
|
||||||
},
|
},
|
||||||
changeOrganization(organizationUuid) {
|
changeOrganization(organizationUuid) {
|
||||||
this.$store.dispatch('user/changeOrganization', {
|
this.$store.dispatch('user/changeOrganization', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user