|
@@ -121,6 +121,7 @@ export default {
|
|
cancelButtonArticle: '取消',
|
|
cancelButtonArticle: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
|
+ const self = this
|
|
if (this.isEdit) {
|
|
if (this.isEdit) {
|
|
updateArticle(this.$route.query.id, this.article).then(response => {
|
|
updateArticle(this.$route.query.id, this.article).then(response => {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -128,7 +129,7 @@ export default {
|
|
type: 'success',
|
|
type: 'success',
|
|
duration: 1000
|
|
duration: 1000
|
|
})
|
|
})
|
|
- this.goBack()
|
|
|
|
|
|
+ self.goBack()
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
createArticle(this.article).then(response => {
|
|
createArticle(this.article).then(response => {
|
|
@@ -139,7 +140,7 @@ export default {
|
|
type: 'success',
|
|
type: 'success',
|
|
duration: 1000
|
|
duration: 1000
|
|
})
|
|
})
|
|
- this.goBack()
|
|
|
|
|
|
+ self.goBack()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|