diff --git a/cwd-comments-admin/src/api/admin.ts b/cwd-comments-admin/src/api/admin.ts index 315a0a7..1418c55 100644 --- a/cwd-comments-admin/src/api/admin.ts +++ b/cwd-comments-admin/src/api/admin.ts @@ -51,6 +51,10 @@ export type EmailNotifySettingsResponse = { pass: string; secure: boolean; }; + templates?: { + reply?: string; + admin?: string; + }; }; export async function loginAdmin(name: string, password: string): Promise { @@ -97,6 +101,10 @@ export function saveEmailNotifySettings(data: { pass?: string; secure?: boolean; }; + templates?: { + reply?: string; + admin?: string; + }; }): Promise<{ message: string }> { return put<{ message: string }>('/admin/settings/email-notify', data); } diff --git a/cwd-comments-admin/src/views/SettingsView.vue b/cwd-comments-admin/src/views/SettingsView.vue index babec69..12cab14 100644 --- a/cwd-comments-admin/src/views/SettingsView.vue +++ b/cwd-comments-admin/src/views/SettingsView.vue @@ -32,7 +32,9 @@
- + +
+ +
+ +
+ 可用变量:${toName} (接收人昵称), ${replyAuthor} (回复人昵称), ${postTitle} + (文章标题), ${postUrl} (文章链接), ${parentComment} (原评论), ${replyContent} + (回复内容) +
+ +
+
{{ message }}
-
- +