(id: string)
| 377 | } |
| 378 | |
| 379 | async function deleteDataSource(id: string) { |
| 380 | try { |
| 381 | const ok = await transport.deleteDataSource(id) |
| 382 | if (ok) { |
| 383 | dataSources.value = dataSources.value.filter((s) => s.id !== id) |
| 384 | } |
| 385 | return ok |
| 386 | } catch (err) { |
| 387 | console.error('[ApiServerStore] Failed to delete data source:', err) |
| 388 | return false |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | // ==================== 导入会话管理 ==================== |
| 393 |
nothing calls this directly
no test coverage detected