|
@@ -4,14 +4,11 @@ import { Route, Switch } from 'dva/router'
|
|
|
const { Header, Content } = Layout
|
|
const { Header, Content } = Layout
|
|
|
import Navigator from '../components/common/navigator'
|
|
import Navigator from '../components/common/navigator'
|
|
|
import Welcome from '../components/myPage/welcome'
|
|
import Welcome from '../components/myPage/welcome'
|
|
|
-import ChartDesigner from '../components/chartDesigner/layout'
|
|
|
|
|
import DataSource from '../components/datasource/dataSource'
|
|
import DataSource from '../components/datasource/dataSource'
|
|
|
import DataSourceDetail from '../components/datasource/dataSourceDetail'
|
|
import DataSourceDetail from '../components/datasource/dataSourceDetail'
|
|
|
import Dashboard from '../components/dashboard/dashboard'
|
|
import Dashboard from '../components/dashboard/dashboard'
|
|
|
import Chart from '../components/chart/list'
|
|
import Chart from '../components/chart/list'
|
|
|
-
|
|
|
|
|
import './mainLayout.less';
|
|
import './mainLayout.less';
|
|
|
-import DashboardDetail from '../components/dashboard/dashboardDetail';
|
|
|
|
|
|
|
|
|
|
const MainLayout = (history) => {
|
|
const MainLayout = (history) => {
|
|
|
return(
|
|
return(
|
|
@@ -26,7 +23,6 @@ const MainLayout = (history) => {
|
|
|
<Route exact sensitive path='/datasource' component={DataSource}/>
|
|
<Route exact sensitive path='/datasource' component={DataSource}/>
|
|
|
<Route sensitive path='/datasource/:type/:code/:tab' component={DataSourceDetail}/>
|
|
<Route sensitive path='/datasource/:type/:code/:tab' component={DataSourceDetail}/>
|
|
|
<Route exact sensitive path='/dashboard' component={Dashboard} />
|
|
<Route exact sensitive path='/dashboard' component={Dashboard} />
|
|
|
- <Route sensitive path='/dashboard/:code/' component={DashboardDetail}/>
|
|
|
|
|
<Route exact sensitive path='/chart' component={Chart} />
|
|
<Route exact sensitive path='/chart' component={Chart} />
|
|
|
</Switch>
|
|
</Switch>
|
|
|
</Content>
|
|
</Content>
|