release: bump version to 0.38.0

This commit is contained in:
linkong committed 2026-04-23 17:57:35 +08:00
1 parent 195a8bf71c
commit d5f3784ffb
39 files changed
+4958 -146

No files matched your search

@@ -15,6 +15,7 @@ import {
AppstoreOutlined,
ToolOutlined,
InboxOutlined,
FileTextOutlined,
} from '@ant-design/icons'
import { useLocation, useNavigate } from 'react-router-dom'
import type { ItemType, MenuItemType } from 'antd/es/menu/interface'
@@ -39,6 +40,7 @@ function AppLayout({ children }: AppLayoutProps) {
const [openKeys, setOpenKeys] = useState<string[]>(cachedOpenKeys)
const showBanner = true
const appVersion = `v${packageJson.version}`
const isSuperAdmin = user?.role === 'super_admin'
const menuItems: ItemType<MenuItemType>[] = [
{
@@ -83,6 +85,7 @@ function AppLayout({ children }: AppLayoutProps) {
label: '运维与配置',
children: [
{ key: '/playground', icon: <RobotOutlined />, label: 'AI Playground' },
...(isSuperAdmin ? [{ key: '/logs', icon: <FileTextOutlined />, label: '系统日志' }] : []),
{ key: '/users', icon: <UserOutlined />, label: '用户管理' },
{ key: '/settings', icon: <SettingOutlined />, label: '系统配置' },
],