diff --git a/web/src/App.js b/web/src/App.js index 634bee0f..74e3b099 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -554,6 +554,13 @@ class App extends Component { }; renderContent() { + const onClick = ({key}) => { + if (key === "/swagger") { + window.open(Setting.isLocalhost() ? `${Setting.ServerUrl}/swagger` : "/swagger", "_blank"); + } else { + this.props.history.push(key); + } + }; return ( {/* https://github.com/ant-design/ant-design/issues/40394 ant design bug. If it will be fixed, we can delete the code for control the color of Header*/} @@ -580,6 +587,7 @@ class App extends Component { :