diff --git a/react-ui/config/routes.ts b/react-ui/config/routes.ts index b500c421..2e655fde 100644 --- a/react-ui/config/routes.ts +++ b/react-ui/config/routes.ts @@ -451,18 +451,6 @@ export default [ }, ], }, - { - name: '知识图谱', - path: 'knowledge', - routes: [ - { - name: '知识图谱', - path: '', - key: 'knowledge', - component: './Knowledge/index', - }, - ], - }, { name: 'Skill', path: 'skills', @@ -487,6 +475,18 @@ export default [ }, ], }, + { + name: '知识图谱', + path: 'knowledge', + routes: [ + { + name: '知识图谱', + path: '', + key: 'knowledge', + component: './Knowledge/index', + }, + ], + }, { name: '应用开发', path: 'apps', diff --git a/react-ui/src/pages/NewHome/components/NavBar/index.tsx b/react-ui/src/pages/NewHome/components/NavBar/index.tsx index 1a071140..f145fd67 100644 --- a/react-ui/src/pages/NewHome/components/NavBar/index.tsx +++ b/react-ui/src/pages/NewHome/components/NavBar/index.tsx @@ -40,7 +40,11 @@ function NavBar() { // 打开云实验平台 const openCloudExperimentPlatform = () => { const token = getCEPToken(); - window.open(`http://30.100.0.37?apiKey=${token}`, '_blank'); + if (token) { + window.open(`http://30.100.0.37?apiKey=${token}`, '_blank'); + } else { + window.open(`http://30.100.0.37`, '_blank'); + } }; // 打开云际算力网平台