mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 优化已实现的种子控制功能
2. 从下载器获取更多信息,开始逐步展示
This commit is contained in:
@@ -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: '任务加载出错!!'
|
||||
|
||||
Reference in New Issue
Block a user