Commit bf3d7767 by 小明

加入 system 页路由映射

parent d806bae9
......@@ -15,7 +15,7 @@ export default class SystemPage extends Component { // eslint-disable-line react
render() {
return (
<div className="ik-margin-horizontal-10">
<div id="mobile_help_system" className="ik-margin-horizontal-10">
<h1 className="ik-margin-top-15">如何配置系统</h1>
<h2 className="ik-margin-top-15">1.调整人员角色和权限</h2>
<p>
......
......@@ -70,7 +70,7 @@ export default function createRoutes(store) {
},
{
path: '/help/feedback',
name: 'feedbackAbout',
name: 'helpFeedback',
getComponent(nextState, cb) {
const importModules = Promise.all([
System.import('containers/help/feedback'),
......@@ -84,6 +84,23 @@ export default function createRoutes(store) {
importModules.catch(errorLoading);
},
},
{
path: '/help/system',
name: 'helpSystem',
getComponent(nextState, cb) {
const importModules = Promise.all([
System.import('containers/help/system'),
]);
const renderRoute = loadModule(cb);
importModules.then(([component]) => {
renderRoute(component);
});
importModules.catch(errorLoading);
},
}
];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment