From 6a3955a1d6e6f195e249fdce57fe641e7773d4cf Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 3 Jul 2023 22:09:47 +0800 Subject: [PATCH] refactor: cancel tip --- .../pipeline/pipeline/component/history-timeline-item.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/history-timeline-item.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/history-timeline-item.vue index 11568b9d5..a076a8775 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/history-timeline-item.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/history-timeline-item.vue @@ -61,11 +61,12 @@ export default defineComponent({ cancelText: "取消", onOk: async () => { await api.Cancel(props.runnable.id); + notification.success({ + message: "任务取消成功" + }); } }); - notification.success({ - message: "任务取消成功" - }); + } return { status,