合并 test/aggressive-mode 到 main

This commit is contained in:
yml2213
2026-06-26 20:33:25 +08:00
22 changed files with 125901 additions and 64 deletions
+5 -2
View File
@@ -14,6 +14,7 @@ export interface Settings {
concurrency: number
attempts: number
retryStages: RetryStage[]
seckillMode: number // 0=标准, 1=激进
}
const App = window.go.main.App
@@ -31,7 +32,8 @@ const settings = ref<Settings>({
logLevel: 'info',
concurrency: 80,
attempts: 1,
retryStages: [...defaultRetryStages]
retryStages: [...defaultRetryStages],
seckillMode: 0
})
export function useSettings() {
@@ -49,7 +51,8 @@ export function useSettings() {
attempts: cfg.attempts || 1,
retryStages: cfg.retryStages && cfg.retryStages.length > 0
? cfg.retryStages
: [...defaultRetryStages]
: [...defaultRetryStages],
seckillMode: cfg.seckillMode || 0
}
} catch (e: any) {
showToast('读取设置失败', e.message, 'error')