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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user