|
@@ -8,6 +8,7 @@ import AuthRoute from './AuthRoute'
|
|
|
const A1home = React.lazy(() => import('@/pages/A1home'))
|
|
|
const B1exhibit = React.lazy(() => import('@/pages/B1exhibit'))
|
|
|
const Login = React.lazy(() => import('@/pages/Z1login'))
|
|
|
+const C1map = React.lazy(() => import('@/pages/C1map'))
|
|
|
|
|
|
// 2个不同的首页路由设置
|
|
|
let homeFlag: '课堂' | '展馆' = '课堂'
|
|
@@ -113,6 +114,7 @@ function RouterOrder() {
|
|
|
<Route path='/' component={homeFlag === '课堂' ? A1home : B1exhibit} exact={true} />
|
|
|
<Route path='/exhi' component={B1exhibit} exact={true} />
|
|
|
<Route path='/login/:key' component={Login} exact={true} />
|
|
|
+ <Route path='/map' component={C1map} exact={true} />
|
|
|
{routerArr.map(v => (
|
|
|
<AuthRoute key={v.id} path={v.path} exact={v.exact} component={v.Com} />
|
|
|
))}
|