添加五秒自动刷新

This commit is contained in:
RenCheng 2025-02-22 12:57:58 +08:00
parent 8b23770f7e
commit 38054bac15

View File

@ -26,7 +26,7 @@
全部
</a-select-option>
<a-select-option key="0">
开始
同步
</a-select-option>
<a-select-option key="1">
进行中
@ -65,7 +65,7 @@
<!-- 字符串超长截取省略号显示-->
<template slot="syncState" slot-scope="text">
<span style="color: #fff;;" v-if="text === 0" >未同步</span>
<span style="color: #fff;" v-if="text === 0" >未同步</span>
<span style="color:darkorange;" v-if="text === 1">进行中</span>
<span style="color:#87d068;" v-if="text === 2">已完成</span>
</template>
@ -221,6 +221,9 @@
{
this.ipagination.total = res.result.total;
}
setTimeout(()=>{
this.loadData();
},5000)
} else {
this.$message.warning(res.message);
}