feat: 完善官网配置、预约管理与文章编辑
This commit is contained in:
@@ -54,3 +54,16 @@ export const DELEGATABLE_SETTING_TABS = SETTING_TABS.filter(
|
||||
!ALWAYS_ADMIN_VISIBLE_TABS.includes(t.key) &&
|
||||
!ROOT_ONLY_SETTING_TABS.includes(t.key),
|
||||
);
|
||||
|
||||
// Standalone admin pages share delegation settings, but are not settings tabs.
|
||||
export const DELEGATABLE_ADMIN_PAGES = [
|
||||
{ key: 'website-setting', labelKey: '官网设置' },
|
||||
{ key: 'demo-reservations', labelKey: '预约演示' },
|
||||
];
|
||||
|
||||
export const ADMIN_DELEGATION_OPTIONS = [
|
||||
...DELEGATABLE_SETTING_TABS,
|
||||
...DELEGATABLE_ADMIN_PAGES,
|
||||
];
|
||||
|
||||
export const ADMIN_DELEGATION_OPTION_KEY = 'AdminDelegatedSettingTabs';
|
||||
|
||||
@@ -67,6 +67,8 @@ export const getDefaultSidebarModulesAdmin = () => ({
|
||||
order: true,
|
||||
invoice: true,
|
||||
setting: true,
|
||||
'website-setting': true,
|
||||
'demo-reservations': true,
|
||||
},
|
||||
analytics: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user