管理员即可展示API调试界面,移除DEV模式限制
This commit is contained in:
@@ -42,12 +42,8 @@ export default function MainLayout() {
|
||||
items.push(
|
||||
{ key: '/platform-merchants', icon: <ShopOutlined />, label: '商户管理' },
|
||||
{ key: '/open-api', icon: <ApiOutlined />, label: '开放接口' },
|
||||
{ key: '/api-debug', icon: <BugOutlined />, label: 'API 调试' },
|
||||
)
|
||||
if (import.meta.env.DEV) {
|
||||
items.push(
|
||||
{ key: '/api-debug', icon: <BugOutlined />, label: 'API 调试' },
|
||||
)
|
||||
}
|
||||
}
|
||||
return items
|
||||
}, [isAdmin])
|
||||
|
||||
Reference in New Issue
Block a user