fix: define missing sortOptions in page-display schema
Homepage schema referenced an undeclared sortOptions constant, which threw ReferenceError during admin SPA router init and blanked the panel. Define the options list in sync with homepage_allowed_sorts().
This commit is contained in:
@@ -3,6 +3,18 @@
|
||||
* Each key corresponds to a sub-page under the "页面&显示" section.
|
||||
*/
|
||||
|
||||
/** Homepage sort options — keep in sync with AKSRT_Settings_Home_Cms::homepage_allowed_sorts() */
|
||||
const sortOptions = [
|
||||
{ label: '最近更新', value: 'modified' },
|
||||
{ label: '发布时间', value: 'date' },
|
||||
{ label: '浏览量', value: 'views' },
|
||||
{ label: '点赞数', value: 'likes' },
|
||||
{ label: '评论数', value: 'comments' },
|
||||
{ label: '收藏数', value: 'favorites' },
|
||||
{ label: '下载量', value: 'downloads' },
|
||||
{ label: '随机', value: 'rand' },
|
||||
]
|
||||
|
||||
export const pageDisplaySchemas = {
|
||||
/**
|
||||
* Header navigation settings
|
||||
|
||||
Reference in New Issue
Block a user