feat: 完善官网配置、预约管理与文章编辑

This commit is contained in:
zhanjunhao
2026-10-31 19:02:58 +08:00
parent 7b80c3bbb3
commit 1bf13bc226
54 changed files with 4898 additions and 203 deletions
+4 -7
View File
@@ -22,6 +22,7 @@ import { Layout, TabPane, Tabs } from '@douyinfe/semi-ui';
import { useNavigate, useLocation } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { StatusContext } from '../../context/Status';
import { getDelegatedSettingTabs } from '../../helpers/adminDelegation';
import {
ALWAYS_ADMIN_VISIBLE_TABS,
ROOT_ONLY_SETTING_TABS,
@@ -264,13 +265,9 @@ const Setting = () => {
}
// 解析 root 配置的「下放给普通管理员」tab 列表
let delegatedTabs = [];
try {
const raw = statusState?.status?.AdminDelegatedSettingTabs;
if (raw) delegatedTabs = JSON.parse(raw);
} catch (e) {
delegatedTabs = [];
}
const delegatedTabs = getDelegatedSettingTabs(
statusState?.status?.AdminDelegatedSettingTabs,
);
// 可见性过滤:root 看全部;普通管理员看「会员管理 + 被下放的 tab」;其余看不到。
if (!isRoot()) {