Files
aiops/frontend/src/components/agent/agentUtils.ts
T
Logan.Li 7fb2236b4d refactor(frontend): P0 API 层收口与 http 统一
- 统一 http.ts baseURL:get/post/download/upload 均走 resolveApiUrl
- agentUtils 下沉至 lib/agent-utils,API 层移除对 components 的依赖
- 扩展 metricsApi/snmpApi/prometheusProxyApi/zabbixProxyApi
- 扩展 pipelineApi/credentialApi 覆盖流水线与凭证场景
- 14 个组件/页面禁止直连 http,统一走 @/services/api
2026-06-25 23:49:46 +08:00

2 lines
116 B
TypeScript

// 兼容旧路径,统一从 lib 导出 // Logan.Li
export { isOnline, timeAgo, asList } from '@/lib/agent-utils';