feat: 增加通知 outbox 重发入口
This commit is contained in:
@@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user