1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-01 13:33:58 +08:00

bug with created terminal data not going to edit page

This commit is contained in:
Chad Derya 2019-09-11 11:46:42 +01:00
parent dd467e8ef8
commit abdc79688a

View File

@ -209,8 +209,7 @@ export default {
})
// Redirect to the edit page when we create a new one
if (!this.isEdit) { this.$router.push(`/terminals/edit/${r.data.id}`) }
if (!this.isEdit) { this.$router.push(`/terminals/edit/${r.data.createdTerminal._id}`) }
this.loading = false
}).catch((e) => {
console.dir(e)