Add door page.

This commit is contained in:
Yang Luo
2021-02-11 16:43:30 +08:00
parent 1483d08df7
commit 09ffe69382
3 changed files with 48 additions and 2 deletions

View File

@ -27,6 +27,7 @@ import ProviderListPage from "./ProviderListPage";
import ProviderEditPage from "./ProviderEditPage";
import ApplicationListPage from "./ApplicationListPage";
import ApplicationEditPage from "./ApplicationEditPage";
import Face from "./Face";
const { Header, Footer } = Layout;
@ -308,7 +309,19 @@ class App extends Component {
)
}
isDoorPages() {
return window.location.pathname.startsWith('/doors/');
}
render() {
if (this.isDoorPages()) {
return (
<Switch>
<Route exact path="/doors/:applicationName" component={Face}/>
</Switch>
)
}
return (
<div id="parent-area">
<BackTop />