fix(submit): enable optional topic selection by default

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-11-11 14:41:02 +08:00
1 parent ee65fc7fd2
commit 374de05059
4 files changed
+5 -5

No files matched your search

@@ -7,7 +7,7 @@ export const submitSchema = {
post_article_s: true,
post_article_btn_txte: '发布文章',
post_article_cat: [],
post_article_topics_s: false,
post_article_topics_s: true,
post_article_topics: [],
post_article_custom_filter_s: true,
post_article_tag: true,
@@ -36,7 +36,7 @@ export const submitSchema = {
},
{ key: 'post_article_btn_txte', label: '按钮文字', type: 'input', default: '发布文章', dependsOn: { key: 'post_article_s', value: true }, description: '投稿按钮的显示的文字,推荐4个字更加协调' },
{ key: 'post_article_cat', label: '投稿允许选择的分类', type: 'taxonomy_select', taxonomy: 'category', multiple: true, default: [], placeholder: '输入关键词以搜索分类', dependsOn: { key: 'post_article_s', value: true }, description: '投稿允许选择的分类,为空则允许选择全部分类,所选分类下如果有子分类则会自动显示,如果选择了上级分类,则不要再选该分类下的子分类。注意:请确保所选分类包含子分类总数不要超过50个,否则可能会引起页面崩溃' },
{ key: 'post_article_topics_s', label: '允许选择专题', type: 'switch', default: false, dependsOn: { key: 'post_article_s', value: true } },
{ key: 'post_article_topics_s', label: '允许选择专题', type: 'switch', default: true, dependsOn: { key: 'post_article_s', value: true }, description: '投稿时可选择关联的专题(非必选)' },
{ key: 'post_article_topics', label: '投稿允许选择的专题', type: 'taxonomy_select', taxonomy: 'topics', multiple: true, default: [], dependsOn: { all: [{ key: 'post_article_s', value: true }, { key: 'post_article_topics_s', value: true }] } },
{ key: 'post_article_custom_filter_s', label: '允许选择高级筛选', type: 'switch', default: true, dependsOn: { key: 'post_article_s', value: true } },
{