mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix(self-check): ensure fixing state is reset after task completion
This commit is contained in:
parent
22e8446030
commit
5120b63618
1 changed files with 4 additions and 5 deletions
|
@ -61,13 +61,12 @@ export const useSelfCheckStore = defineStore('selfCheck', () => {
|
|||
fixing.value[taskName] = true
|
||||
try {
|
||||
await selfCheck.fix(taskName)
|
||||
await nextTick()
|
||||
setTimeout(() => {
|
||||
check()
|
||||
}, 1000)
|
||||
}
|
||||
finally {
|
||||
fixing.value[taskName] = false
|
||||
setTimeout(() => {
|
||||
check()
|
||||
fixing.value[taskName] = false
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue