feat: 支持自定义生成等待超时时间 (closes #21)

This commit is contained in:
foxhui
2026-03-05 03:43:41 +08:00
parent d5e0d92598
commit a9240c2375
21 changed files with 103 additions and 52 deletions
+2
View File
@@ -9,6 +9,7 @@ export const useSettingsStore = defineStore('settings', {
workerConfig: [],
poolConfig: {
strategy: 'least_busy',
waitTimeout: 120,
failover: {
enabled: false,
maxRetries: 3
@@ -164,6 +165,7 @@ export const useSettingsStore = defineStore('settings', {
// 合并以确保结构存在
this.poolConfig = {
strategy: data.strategy || 'least_busy',
waitTimeout: data.waitTimeout ?? 120,
failover: {
enabled: data.failover?.enabled || false,
maxRetries: data.failover?.maxRetries || 3