mirror of https://github.com/halo-dev/halo-admin
Fixed #10
parent
493da47baa
commit
77c826ebe8
|
@ -221,11 +221,6 @@ export default {
|
||||||
categoryToCreate: {}
|
categoryToCreate: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// TODO delete this commented code
|
|
||||||
// model: {
|
|
||||||
// prop: 'visible',
|
|
||||||
// event: 'close'
|
|
||||||
// },
|
|
||||||
props: {
|
props: {
|
||||||
post: {
|
post: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
@ -386,6 +381,7 @@ export default {
|
||||||
this.$log.debug('Updated post', response.data.data)
|
this.$log.debug('Updated post', response.data.data)
|
||||||
if (updateSuccess) {
|
if (updateSuccess) {
|
||||||
updateSuccess()
|
updateSuccess()
|
||||||
|
this.$router.push({ name: 'PostList' })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
@ -394,6 +390,7 @@ export default {
|
||||||
this.$log.debug('Created post', response.data.data)
|
this.$log.debug('Created post', response.data.data)
|
||||||
if (createSuccess) {
|
if (createSuccess) {
|
||||||
createSuccess()
|
createSuccess()
|
||||||
|
this.$router.push({ name: 'PostList' })
|
||||||
}
|
}
|
||||||
this.selectedPost = response.data.data
|
this.selectedPost = response.data.data
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue