【发布时间】:2019-12-11 22:50:14
【问题描述】:
您好,在我的路线文件中,我设置了 struct header 导航栏和 switch 页脚
const AppRouter = () => (
<BrowserRouter>
<Route path="/login" component={AuthPage} exact={true} />
<Route path="/dashboard/addProduct" component={AddProduct} exact={true} />
<div>
<Header/>
<Navigation/>
<Container maxWidth="lg" >
<Switch>
<Route path="/" component={LandingPage} exact={true} />
<Route path="/xd" component={AuthPage} exact={true} />
<Route component={NotFoundPage} />
</Switch>
</Container>
</div>
</BrowserRouter>
);
基本上我有一个路由器应用程序 我在哪里有我的导航栏页脚页眉和我的内容
我的内容将与开关 只渲染我的内容
它工作正常,但我有一些路线我不想呈现我的导航栏页脚标题 我怎么会得到这个??
【问题讨论】: