fix(loading-bar): finish will not work when called too closed with start

This commit is contained in:
07akioni 2019-09-07 10:17:11 +08:00
parent 04f8ed95b0
commit b0843ea7bc

View File

@ -78,7 +78,7 @@ export default {
this.status = 'finishing'
})
} else {
this.$nextTick(() => {
this.$nextTick().then(() => this.$nextTick()).then(() => {
this.progress = 100
this.status = 'finishing'
})
@ -99,7 +99,7 @@ export default {
this.status = 'error'
})
} else {
this.$nextTick(() => {
this.$nextTick().then(() => this.$nextTick()).then(() => {
this.progress = 100
this.status = 'error'
})