From 26d1b9fbc9c82da388a8f65400a846e956b21daf Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 21 Jul 2026 15:06:28 +0800 Subject: [PATCH] fix(admin): escape multiline quick-reply default string Unescaped newlines in comment_quick_often broke Vite production parse. --- assets/admin/src/schema/sections/post-list/comment.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/assets/admin/src/schema/sections/post-list/comment.js b/assets/admin/src/schema/sections/post-list/comment.js index aac10c7d..209158aa 100644 --- a/assets/admin/src/schema/sections/post-list/comment.js +++ b/assets/admin/src/schema/sections/post-list/comment.js @@ -24,9 +24,7 @@ export const commentSchema = { comment_quick_s: true, comment_city_s: true, comment_city_type: 'province_city', - comment_quick_often: '不错,学习了 -感谢分享 -期待更新', + comment_quick_often: '不错,学习了\n感谢分享\n期待更新', comment_author_tag: true, comment_corderby: true, comment_empty_text: '暂无评论,来做第一个评论的人吧~', @@ -92,9 +90,7 @@ export const commentSchema = { { label: '仅省份', value: 'province' }, { label: '国家+省份', value: 'country_province' }, ], dependsOn: { key: 'comment_city_s', value: true } }, - { key: 'comment_quick_often', label: '快捷回复短语', type: 'textarea', default: '不错,学习了 -感谢分享 -期待更新', help: '每行一条', dependsOn: { key: 'comment_quick_s', value: true } }, + { key: 'comment_quick_often', label: '快捷回复短语', type: 'textarea', default: '不错,学习了\n感谢分享\n期待更新', help: '每行一条', dependsOn: { key: 'comment_quick_s', value: true } }, { key: 'comment_author_tag', label: '作者标签', type: 'switch', default: true }, { key: 'comment_corderby', label: '评论排序切换', type: 'switch', default: true, help: '前台显示最新/最早/最热切换按钮' }, ],