1
0
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:
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 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', {