1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

correcting duplicate path error (#482)

This commit is contained in:
elsiosanchez 2020-05-06 11:04:16 -04:00 committed by GitHub
parent 8d4f2a361f
commit 85468ffa0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,9 +105,11 @@ export default {
warehouseUuid: this.warehouseUuid
})
.then(response => {
if (this.$route.name !== 'Dashboard') {
this.$router.push({ path: '/' })
}
this.$store.dispatch('listDashboard', response.uuid)
})
this.$router.push({ path: '/' })
},
changeOrganization(organizationUuid) {
this.$store.dispatch('user/changeOrganization', {