|
@@ -1,6 +1,7 @@
|
|
|
import React from 'react'
|
|
|
import { Route, Switch } from 'react-router-dom'
|
|
|
import NotFound from './NotFound'
|
|
|
+import { isMobileFu } from '@/utils/history'
|
|
|
|
|
|
const A1home = React.lazy(() => import('../pages/A1home'))
|
|
|
const A2scene = React.lazy(() => import('../pages/A2scene'))
|
|
@@ -10,7 +11,7 @@ const ErrPage = React.lazy(() => import('../pages/ErrPage'))
|
|
|
function RoutePage() {
|
|
|
return (
|
|
|
<Switch>
|
|
|
- <Route path='/base' component={A0base} exact />
|
|
|
+ <Route path='/base' component={isMobileFu() ? A0base : A1home} exact />
|
|
|
<Route path='/scene/:code' component={A2scene} exact />
|
|
|
<Route path='/err' component={ErrPage} exact />
|
|
|
<Route path='/' component={A1home} exact />
|