41 lines
1.7 KiB
JavaScript
41 lines
1.7 KiB
JavaScript
import React from 'react';
|
|
import Route from 'react-router/lib/Route';
|
|
import Weeso from './components/Weeso';
|
|
import WeesoResult from './components/WeesoResult';
|
|
import WeesoSet from './components/ApiSet';
|
|
import WeesoRobot from './components/robot/index';
|
|
|
|
|
|
import {WeaLocaleProvider} from 'ecCom';
|
|
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'esearch');
|
|
|
|
|
|
|
|
import './style';
|
|
import stores from './stores';
|
|
|
|
const Home = props => {
|
|
return (
|
|
<div style={{height:"100%"}} className={'esearch-home'}>
|
|
<iframe id="hiddenPreLoaderSingle" name="hiddenPreLoaderSingle" style={{display: "none"}} width="0" height="0" border="0" frameborder="0"></iframe>
|
|
<WeaLocaleProvider ecId={`${this && this.props && this.props.ecId || ''}_WeaLocaleProvider@7kn5ug`}>
|
|
{props.children}
|
|
</WeaLocaleProvider>
|
|
</div>
|
|
)
|
|
};
|
|
|
|
const Routes = (
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@irwztz`} path='esearch' onEnter={getLocaleLabel} component={Home}>
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@v9ugyu`} name='weeso' breadcrumbName='微搜' path='weeso' component={Weeso} />
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@xu33n8`} name='result' breadcrumbName='微搜结果' path='result' component={WeesoResult} />
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ahjf4z`} name='set' breadcrumbName='接口设置' path='set' component={WeesoSet} />
|
|
<Route ecId={`${this && this.props && this.props.ecId || ''}_Route@l8xxdf`} name='robot' breadcrumbName='智能指令' path='robot' component={WeesoRobot} />
|
|
</Route>
|
|
);
|
|
|
|
module.exports = {
|
|
Route: Routes,
|
|
store: stores,
|
|
};
|