feat: 增加通知 outbox 重发入口

This commit is contained in:
湛兮
2026-06-12 03:53:19 +08:00
parent c3c0d69401
commit 1dedafc7bc
3 changed files with 74 additions and 0 deletions
+11
View File
@@ -135,6 +135,16 @@ export const usePlatformStore = defineStore('platform', () => {
return notificationOutbox.value
}
async function retryNotificationOutboxMessage(id: string) {
const message = await devopsApi.retryNotificationOutboxMessage(id)
notificationOutbox.value = [
message,
...notificationOutbox.value.filter((item) => item.id !== message.id),
]
dataSource.value = devopsApi.getLastDataSource()
return message
}
function upsertRun(run: ReleaseRun) {
runs.value = [run, ...runs.value.filter((item) => item.id !== run.id)]
}
@@ -163,5 +173,6 @@ export const usePlatformStore = defineStore('platform', () => {
loadProjectRefs,
loadAuditLogs,
loadNotificationOutbox,
retryNotificationOutboxMessage,
}
})