diff --git a/src/pages/System/Tools/index.tsx b/src/pages/System/Tools/index.tsx index abd429a..fc0e123 100644 --- a/src/pages/System/Tools/index.tsx +++ b/src/pages/System/Tools/index.tsx @@ -24,6 +24,7 @@ import Icon from '@ant-design/icons' import compiler from '@/components/Playground/compiler.ts' import { base64ToFiles, IMPORT_MAP_FILE_NAME, strToBase64 } from '@/components/Playground/files.ts' import { IImportMap } from '@/components/Playground/shared.ts' +import Permission from '@/components/common/Permission.tsx' const Tools = () => { const navigate = useNavigate() @@ -125,28 +126,32 @@ const Tools = () => { > 查看 - {record.review === 'PROCESSING' && ( + + {record.review === 'PROCESSING' && ( + + 审核 + + )} + {record.review === 'PASS' && ( + + 下架 + + )} + + - 审核 + 删除 - )} - {record.review === 'PASS' && ( - - 下架 - - )} - - 删除 - + {' '} ) diff --git a/src/router/system.tsx b/src/router/system.tsx index b4ded5f..828af70 100644 --- a/src/router/system.tsx +++ b/src/router/system.tsx @@ -54,6 +54,7 @@ const system: RouteJsonObject[] = [ absolutePath: '/system/tools/code', id: 'system-tools-code', component: lazy(() => import('@/pages/System/Tools/Code')), + operationCode: 'system:tool:query:tool', name: '查看工具' }, { @@ -61,6 +62,7 @@ const system: RouteJsonObject[] = [ absolutePath: '/system/tools/execute', id: 'system-tools-execute', component: lazy(() => import('@/pages/System/Tools/Execute')), + operationCode: 'system:tool:query:tool', name: '运行工具' }, {