Skip to content

Commit

Permalink
MOUNTING bugfixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekko11 committed Apr 18, 2024
1 parent 7edd627 commit 8a4d28b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions vue-piflow-web/src/components/pages/StopHub/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1354,12 +1354,16 @@ export default {
if (res.data.code === 200) {
this.tableData = res.data.data;
this.total = res.data.count;
if(this.tableData.some(v=>v.status.text === 'MOUNTING') && !this.timer){
this.timer = setInterval(()=>{
this.getTableData()
},60000)
if(this.tableData.some(v=>v.status.text === 'MOUNTING')){
if(!this.timer){
this.timer = setInterval(()=>{
this.getTableData()
},60000)
}
}else{
clearInterval(this.timer)
if(this.timer){
clearInterval(this.timer)
}
}
} else {
this.$Message.error({
Expand Down

0 comments on commit 8a4d28b

Please sign in to comment.