Commit 203ea776 authored by afc163's avatar afc163

format router.config.js

parent 74b1a284
...@@ -33,15 +33,27 @@ module.exports = [ ...@@ -33,15 +33,27 @@ module.exports = [
icon: 'form', icon: 'form',
name: 'form', name: 'form',
routes: [ routes: [
{ path: '/form/basic-form', name: 'basicform', component: './Forms/BasicForm' }, {
path: '/form/basic-form',
name: 'basicform',
component: './Forms/BasicForm',
},
{ {
path: '/form/step-form', path: '/form/step-form',
name: 'stepform', name: 'stepform',
component: './Forms/StepForm', component: './Forms/StepForm',
hideChildren: true, hideChildren: true,
routes: [ routes: [
{ path: '/form/step-form', name: 'stepform', redirect: '/form/step-form/info' }, {
{ path: '/form/step-form/info', name: 'info', component: './Forms/StepForm/Step1' }, path: '/form/step-form',
name: 'stepform',
redirect: '/form/step-form/info',
},
{
path: '/form/step-form/info',
name: 'info',
component: './Forms/StepForm/Step1',
},
{ {
path: '/form/step-form/confirm', path: '/form/step-form/confirm',
name: 'confirm', name: 'confirm',
...@@ -133,7 +145,10 @@ module.exports = [ ...@@ -133,7 +145,10 @@ module.exports = [
name: 'center', name: 'center',
component: './Account/Center/Center', component: './Account/Center/Center',
routes: [ routes: [
{ path: '/account/center', redirect: '/account/center/articles' }, {
path: '/account/center',
redirect: '/account/center/articles',
},
{ {
path: '/account/center/articles', path: '/account/center/articles',
component: './Account/Center/Articles', component: './Account/Center/Articles',
...@@ -153,7 +168,10 @@ module.exports = [ ...@@ -153,7 +168,10 @@ module.exports = [
name: 'settings', name: 'settings',
component: './Account/Settings/Info', component: './Account/Settings/Info',
routes: [ routes: [
{ path: '/account/settings', redirect: '/account/settings/base' }, {
path: '/account/settings',
redirect: '/account/settings/base',
},
{ {
path: '/account/settings/base', path: '/account/settings/base',
component: './Account/Settings/BaseView', component: './Account/Settings/BaseView',
...@@ -162,7 +180,10 @@ module.exports = [ ...@@ -162,7 +180,10 @@ module.exports = [
path: '/account/settings/security', path: '/account/settings/security',
component: './Account/Settings/SecurityView', component: './Account/Settings/SecurityView',
}, },
{ path: '/account/settings/binding', component: './Account/Settings/BindingView' }, {
path: '/account/settings/binding',
component: './Account/Settings/BindingView',
},
{ {
path: '/account/settings/notification', path: '/account/settings/notification',
component: './Account/Settings/NotificationView', component: './Account/Settings/NotificationView',
......
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