fix(admin): unblock post list save and permissions schema endpoints

Align post_list.list pagination values with PHP (numbered/load_more/infinite)
so SchemaPage saves no longer 422 on 分页模式. Stop permissions schema build
from fatally calling missing build_cap_matrix_groups() when loading
login/moderation sections, normalize moderation dependsOn objects, and skip
notice-only fields in schema field collection.
This commit is contained in:
2026-07-11 09:53:03 +08:00
parent a44d2f8940
commit 41243e12d2
3 changed files with 22 additions and 9 deletions
@@ -10,7 +10,7 @@ export const listSchema = {
post_show_views: true,
post_show_category: true,
post_excerpt_length: 120,
post_pagination_mode: 'numeric',
post_pagination_mode: 'numbered',
ias_max: 3,
ajax_trigger_text: '',
ajax_nomore_text: '',
@@ -80,8 +80,8 @@ export const listSchema = {
title: '分页方式',
icon: 'fas fa-ellipsis-h',
fields: [
{ key: 'post_pagination_mode', label: '分页模式', type: 'radio', default: 'numeric', options: [
{ label: '数字分页', value: 'numeric' },
{ key: 'post_pagination_mode', label: '分页模式', type: 'radio', default: 'numbered', options: [
{ label: '数字分页', value: 'numbered' },
{ label: '加载更多', value: 'load_more' },
{ label: '无限滚动', value: 'infinite' },
]},