mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
fix(loading-bar): finish will not work when called too closed with start
This commit is contained in:
parent
04f8ed95b0
commit
b0843ea7bc
@ -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'
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user