()
| 335 | // ==================== 数据源管理 ==================== |
| 336 | |
| 337 | async function fetchDataSources() { |
| 338 | try { |
| 339 | dataSources.value = await transport.getDataSources() |
| 340 | } catch (err) { |
| 341 | console.error('[ApiServerStore] Failed to fetch data sources:', err) |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | async function addDataSource(partial: { |
| 346 | name?: string |
no test coverage detected