diff --git a/src/dialogs/SettingsDialog/SettingsDialog.vue b/src/dialogs/SettingsDialog/SettingsDialog.vue index 4203b4d..ee154da 100644 --- a/src/dialogs/SettingsDialog/SettingsDialog.vue +++ b/src/dialogs/SettingsDialog/SettingsDialog.vue @@ -5,9 +5,8 @@ import { path } from '@tauri-apps/api' import { appDataDir } from '@tauri-apps/api/path' import { useStore } from '../../store.ts' import DownloadSettings from './components/DownloadSettings.vue' -import ProxySettings from './components/ProxySettings.vue' import FmtSettings from './components/FmtSettings.vue' -import DownloadSpeedSettings from './components/DownloadSpeedSettings.vue' +import NetworkSettings from './components/NetworkSettings.vue' import AssDanmakuSettings from './components/AssDanmakuSettings.vue' import { useMessage } from 'naive-ui' @@ -64,11 +63,8 @@ async function showConfigInFileManager() { - - - - - + + diff --git a/src/dialogs/SettingsDialog/components/DownloadSpeedSettings.vue b/src/dialogs/SettingsDialog/components/DownloadSpeedSettings.vue deleted file mode 100644 index c860922..0000000 --- a/src/dialogs/SettingsDialog/components/DownloadSpeedSettings.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - 最多有多少个任务同时下载 - - - 任务并发 - - - - - - 每个任务下载完成后休息多久 - - - 任务下载间隔 - - 秒 - - - - - - - - 最多有多少个分片同时下载 - - - 分片并发 - - - - - - 每个分片下载完成后休息多久 - - - 分片下载间隔 - - 秒 - - - - - - diff --git a/src/dialogs/SettingsDialog/components/NetworkSettings.vue b/src/dialogs/SettingsDialog/components/NetworkSettings.vue new file mode 100644 index 0000000..9bb6568 --- /dev/null +++ b/src/dialogs/SettingsDialog/components/NetworkSettings.vue @@ -0,0 +1,108 @@ + + + + + + 代理类型 + + 直连 + 系统代理 + 自定义 + + + + http:// + + : + + + + + + 下载速度 + + + 最多有多少个任务同时下载 + + + 任务并发 + + + + + + 每个任务下载完成后休息多久 + + + 任务下载间隔 + + 秒 + + + + + + + + 最多有多少个分片同时下载 + + + 分片并发 + + + + + + 每个分片下载完成后休息多久 + + + 分片下载间隔 + + 秒 + + + + + + + diff --git a/src/dialogs/SettingsDialog/components/ProxySettings.vue b/src/dialogs/SettingsDialog/components/ProxySettings.vue deleted file mode 100644 index bcdbd41..0000000 --- a/src/dialogs/SettingsDialog/components/ProxySettings.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - 直连 - 系统代理 - 自定义 - - - - http:// - - : - - - -