mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-01 13:33:58 +08:00
fixed a bug where admin create a fuel then, edit page not showing correct details of fuel
This commit is contained in:
parent
7fa961b5b8
commit
c7d3ce9a99
@ -226,7 +226,7 @@ export default {
|
||||
})
|
||||
|
||||
// Redirect to the edit page when we create a new one
|
||||
if (!this.isEdit) { this.$router.push(`/products/edit/${r.data.id}`) }
|
||||
if (!this.isEdit) { this.$router.push(`/products/edit/${r.data.createdFuel._id}`) }
|
||||
|
||||
this.loading = false
|
||||
}).catch((e) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user