feat: 优化发布单冲突提示

- src/services/http.ts: 保留后端 envelope 错误码、状态和 details
- src/stores/platform.ts: 增加发布单列表轻量刷新入口
- src/views: 发布中心和运行记录接入 CONFLICT 刷新提示
- src/types/devops.ts: 同步 ReleaseRun version 字段
This commit is contained in:
湛兮
2026-06-12 05:22:28 +08:00
parent 0302660351
commit a2eb83051c
6 changed files with 167 additions and 14 deletions
+2
View File
@@ -98,6 +98,7 @@ interface BackendDeployRunStep {
interface BackendDeployRun {
id?: string
version?: number
projectKey?: string
environment?: EnvironmentName
ref?: string
@@ -993,6 +994,7 @@ function toReleaseRun(run: BackendDeployRun, projectList: ProjectConfig[]): Rele
return {
id: run.id || `${projectKey}-${ref}-${run.createdAt ?? Date.now()}`,
version: typeof run.version === 'number' && Number.isFinite(run.version) ? run.version : 0,
projectKey,
projectName: project?.name ?? projectKey,
environment: toEnvironmentName(run.environment),