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:
parent
dd467e8ef8
commit
abdc79688a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user