Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit 371a65b

Browse files
committed
fix: correct modal button callback for email template reset
- Updated the modal callback from `onNegativeClick` to `onPositiveClick` to ensure the correct action is triggered when confirming the reset of the email template. - This change clarifies the user interaction flow and improves the functionality of the reset confirmation modal. Signed-off-by: Innei <tukon479@gmail.com>
1 parent e63087e commit 371a65b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/views/extra-features/assets/template/tabs

src/views/extra-features/assets/template/tabs/email.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export const EmailTab = defineComponent({
4545
modal.warning({
4646
title: '确认重置?',
4747
content: '重置后,模板将被恢复为默认模板',
48-
async onNegativeClick() {
48+
async onPositiveClick() {
4949
await optionsApi.deleteEmailTemplate({ type: templateType.value })
5050

5151
await fetch()
5252
},
53-
onPositiveClick() {},
53+
5454
negativeText: '取消',
5555
positiveText: '确认',
5656
})

0 commit comments

Comments
 (0)