1. 优化已实现的种子控制功能

2. 从下载器获取更多信息,开始逐步展示
This commit is contained in:
ngfchl
2022-09-29 19:06:14 +08:00
parent cde1251e25
commit 1c14ef362d
2 changed files with 26 additions and 15 deletions

View File

@@ -391,9 +391,10 @@
console.log('获取下载器列表成功', res.data)
if (res.data.code === 0) {
this.downloaders = res.data.data
console.log(this.torrents)
this.downloader_id = this.downloaders[0].id
this.get_downloading(this.downloader_id)
console.log(this.torrents.length)
{#console.log(this.torrents.length)#}
this.loading = false
} else {
this.loading = false
@@ -435,15 +436,15 @@
}
}
).then(res => {
{#console.log(res.data.data.torrents)#}
if (res.data.code === 0) {
console.log(res.data.data.length)
this.torrents = res.data.data
this.$message({
type: 'success',
message: '任务加载成功!!'
})
this.torrents = res.data.data.torrents
//this.$message({
// type: 'success',
// message: '任务加载成功!!'
//})
} else {
console.log(res.data.data)
{#console.log(res.data.data)#}
this.$message({
type: 'warning',
message: '任务加载出错!!'