进入页面时提醒10分钟后停止刷新,停止刷新时设置刷新按钮

This commit is contained in:
ngfchl
2022-10-09 12:15:25 +08:00
parent 8b9783a901
commit eb4286b4b7

View File

@@ -46,7 +46,7 @@
}
.bottom_xf {
background-color: rgba(255 165 0 /50%);
background-color: rgba(218 165 32 /50%);
width: 100%;
height: 28px;
margin: auto;
@@ -526,6 +526,9 @@
},
mounted() {
this.loading = true
this.$message({
type: 'warning', message: '下载器将在十分钟后停止刷新!'
});
{#console.log("获取下载器数量:", this.downloaders.length)#}
{#this.get_downloading(this.downloaders[0].id)#}
},
@@ -534,6 +537,7 @@
setTimeout(() => {
clearInterval(this.timer)
this.timer = null
this.refresh = true
}, 1000 * 60 * 10)
},
beforeUpdated() {