fix(admin): escape multiline quick-reply default string

Unescaped newlines in comment_quick_often broke Vite production parse.
This commit is contained in:
2026-07-21 15:06:28 +08:00
parent 82251b4227
commit 26d1b9fbc9
@@ -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: '前台显示最新/最早/最热切换按钮' },
],