脚本管理增加可预览检查

This commit is contained in:
whyour
2025-02-26 01:17:11 +08:00
parent f9f78b4e05
commit 64fcbff715
5 changed files with 34 additions and 10 deletions
+1 -1
View File
@@ -801,7 +801,7 @@ export default class NotificationService {
webhookContentType,
} = this.params;
if (!webhookUrl.includes('$title') && !webhookBody.includes('$title')) {
if (!webhookUrl?.includes('$title') && !webhookBody?.includes('$title')) {
throw new Error('Url 或者 Body 中必须包含 $title');
}