Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xoadoPlatform
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaohui
xoadoPlatform
Commits
9a4f6f83
Commit
9a4f6f83
authored
Feb 09, 2022
by
吕海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回滚代码
parent
dff5946d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
47 deletions
+91
-47
index.js
src/router/index.js
+91
-47
No files found.
src/router/index.js
View file @
9a4f6f83
import
Vue
from
'vue'
import
Vue
from
'vue'
import
VueRouter
from
'vue-router'
import
VueRouter
from
'vue-router'
import
Layout
from
'@/layout'
import
Layout
from
'@/layout/index.vue'
import
{
routerMode
}
from
'@/config/index'
import
store
from
'@/store'
import
store
from
'@/store/index'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
/* 通用routers */
/**
* 静态路由
* @type {({path: string, component: (function(): *), hidden: boolean}|{path: string, component: (function(): *), hidden: boolean, name: string}|{path: string, component: (function(): *), hidden: boolean, name: string})[]}
*/
export
const
currencyRoutes
=
[{
export
const
currencyRoutes
=
[{
path
:
'/login'
,
path
:
'/login'
,
name
:
'Login'
,
component
:
()
=>
component
:
()
=>
import
(
/* webpackChunkName: "login" */
'@/views/login/index.vue'
),
import
(
'@/views/login/index-2.vue'
),
meta
:
{
title
:
'登录页'
},
hidden
:
true
hidden
:
true
},
},
{
path
:
'/error'
,
component
:
Layout
,
name
:
'Error'
,
redirect
:
'/error/404'
,
hidden
:
true
,
children
:
[{
path
:
'404'
,
name
:
'Page404'
,
component
:
()
=>
import
(
'@/views/error-page/index.vue'
),
meta
:
{
title
:
'404'
,
icon
:
'el-icon-s-release'
}
}]
},
// {
// path: '/personal',
// name: 'Personal',
// component: Layout,
// redirect: '/personal/index',
// hidden: true,
// children: [{
// path: 'index',
// name: 'Personal-index',
// component: () =>
// import('@/views/About.vue'),
// meta: { title: '个人中心' }
// }]
// },
// {
// path: '/DriverInfo',
// name: 'DriverInfo',
// component: Layout,
// redirect: '/driverInfo/index',
// children: [{
// path: 'index',
// name: 'driverInfoIndex',
// component: () =>
// import('@/views/operationArea/components/driverInfo.vue'),
// meta: { title: '司机详情', icon: 'el-icon-s-flag' },
// }],
// hidden: true
// },
{
{
path
:
'/Real'
,
path
:
'/Real'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/components/newReal.vue'
),
import
(
'@/views/components/newReal.vue'
),
meta
:
{
meta
:
{
title
:
'实名认证'
},
title
:
'实名认证'
},
hidden
:
true
hidden
:
true
},
},
{
{
path
:
'/JoiningEnterprise'
,
path
:
'/JoiningEnterprise'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/components/newJoiningEnterprise.vue'
),
import
(
'@/views/components/newJoiningEnterprise.vue'
),
meta
:
{
meta
:
{
title
:
'加入企业'
},
title
:
'加入企业'
},
hidden
:
true
hidden
:
true
},
},
{
{
path
:
'/401'
,
path
:
'/CreateEnterprise'
,
name
:
'401'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/401'
),
import
(
'@/views/components/newCreateEnterprise.vue'
),
hidden
:
true
meta
:
{
title
:
'企业认证'
},
},
{
path
:
'/404'
,
name
:
'404'
,
component
:
()
=>
import
(
'@/views/404'
),
hidden
:
true
hidden
:
true
}
}
]
]
/**
/**
* 动态路由
* 动态
添加的
路由
* @type {
any
}
* @type {
[*]
}
*/
*/
export
const
routes
=
[{
export
const
asyncRoutes
=
[
{
path
:
'/'
,
path
:
'/'
,
name
:
'Company
'
,
name
:
'platform
'
,
component
:
Layout
,
component
:
Layout
,
redirect
:
'/company'
,
redirect
:
'/company-platformInfo'
,
meta
:
{
meta
:
{
icon
:
'el-icon-s-platform'
,
title
:
'平台管理'
},
icon
:
'el-icon-office-building'
,
children
:
[{
title
:
'企业管理'
path
:
'company-platformInfo'
,
name
:
'CompanyplatformInfo'
,
component
:
()
=>
import
(
'@/views/platformInfo/index.vue'
),
meta
:
{
title
:
'平台配置'
,
icon
:
'el-icon-s-unfold'
}
},
},
{
path
:
'operate'
,
name
:
'operate'
,
component
:
()
=>
import
(
'@/views/operate/index.vue'
),
meta
:
{
title
:
'区域管理'
,
icon
:
'el-icon-s-claim'
},
},
]
},
{
path
:
'/information'
,
name
:
'information'
,
component
:
Layout
,
redirect
:
'/information/index'
,
meta
:
{
icon
:
'el-icon-s-home'
,
title
:
'企业管理'
},
children
:
[{
children
:
[{
path
:
'/
'
,
path
:
'company-information
'
,
name
:
'CompanyInformation'
,
name
:
'CompanyInformation'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/dashboard/index.vue'
),
import
(
'@/views/dashboard/index.vue'
),
meta
:
{
meta
:
{
title
:
'企业信息'
,
icon
:
'el-icon-s-data'
}
title
:
'企业信息'
,
icon
:
'el-icon-s-data'
}
},
},
{
{
path
:
'account-information'
,
path
:
'account-information'
,
name
:
'AccountInformation'
,
name
:
'AccountInformation'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/accountManagement/index.vue'
),
// import ('@/views/permission/page-admin'),
meta
:
{
import
(
'@/views/permission/page-admin-new'
),
title
:
'账户管理'
,
meta
:
{
title
:
'账户管理'
,
icon
:
'el-icon-s-finance'
}
icon
:
'el-icon-s-finance'
}
},
},
{
{
path
:
'bandCard'
,
path
:
'bandCard'
,
name
:
'bandCard'
,
name
:
'bandCard'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/accountManagement/bankCard'
),
// import('@/views/permission/bank-card'),
meta
:
{
import
(
'@/views/permission/bankCardNew'
),
title
:
'银行卡管理'
meta
:
{
title
:
'银行卡管理'
},
},
hidden
:
true
hidden
:
true
},
},
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment