Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
bp
op-web-service
Commits
dc9cb824
Commit
dc9cb824
authored
Jul 27, 2021
by
lvweichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: router conflict
parent
f4835bcb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
29 deletions
+11
-29
pageconfig.js
src/config/pageconfig.js
+6
-6
manage-role.vue
src/pages/Role/manage-role.vue
+1
-1
add-role.vue
src/pages/Withdrawal/Role/add-role.vue
+1
-1
index.js
src/router/Withdrawal/index.js
+2
-2
index.js
src/router/index.js
+1
-19
No files found.
src/config/pageconfig.js
View file @
dc9cb824
...
...
@@ -54,10 +54,10 @@ export const PERMISSIONNAME_PAGEMODULE = (function () {
* router 用该配置做路由权限拦截。需要增加权限拦截的路由,需在此添加配置。
*/
export
const
PATH_PERMISSION_NAME
=
{
'/enterprise/certification'
:
'enterprise_certification_management'
,
'/enterprise/audit'
:
'enterprise_certification_management.audit'
,
'/enterprise/establish'
:
'enterprise_certification_management.create'
,
'/lifeNo'
:
'life_official_account_management'
,
'/roleManageRole'
:
'role_management'
,
'/user'
:
'user_management'
'/
op/
enterprise/certification'
:
'enterprise_certification_management'
,
'/
op/
enterprise/audit'
:
'enterprise_certification_management.audit'
,
'/
op/
enterprise/establish'
:
'enterprise_certification_management.create'
,
'/
op/
lifeNo'
:
'life_official_account_management'
,
'/
op/
roleManageRole'
:
'role_management'
,
'/
op/
user'
:
'user_management'
}
\ No newline at end of file
src/pages/Role/manage-role.vue
View file @
dc9cb824
...
...
@@ -12,6 +12,6 @@ export default {
components
:
{
Layout
,
RoleList
}
,
}
};
</
script
>
src/pages/Withdrawal/Role/add-role.vue
View file @
dc9cb824
...
...
@@ -128,7 +128,7 @@ export default {
},
methods
:
{
toRoleDetail
(
row
)
{
this
.
$router
.
push
({
name
:
'RoleDetail'
,
query
:
{
roleId
:
row
.
role_id
}
});
this
.
$router
.
push
({
name
:
'
withdrawal
RoleDetail'
,
query
:
{
roleId
:
row
.
role_id
}
});
},
goBack
()
{
this
.
$router
.
go
(
-
1
)
...
...
src/router/Withdrawal/index.js
View file @
dc9cb824
...
...
@@ -34,7 +34,7 @@ const withdrawalRoutes = [
},
{
path
:
"/op/withdrawal/roleManageRole"
,
name
:
"ManageRole"
,
name
:
"
withdrawal
ManageRole"
,
component
:
()
=>
import
(
/* webpackChunkName: "Withdrawal" */
"@/pages/Withdrawal/Role/manage-role"
...
...
@@ -46,7 +46,7 @@ const withdrawalRoutes = [
},
{
path
:
"/op/withdrawal/roleRoleDetail"
,
name
:
"RoleDetail"
,
name
:
"
withdrawal
RoleDetail"
,
component
:
()
=>
import
(
/* webpackChunkName: "Withdrawal" */
"@/pages/Withdrawal/Role/role-detail"
...
...
src/router/index.js
View file @
dc9cb824
...
...
@@ -80,21 +80,6 @@ const routes = [
name
:
"/op/User"
,
component
:
User
},
// {
// path: "/op/userDetail",
// name: "UserDetail",
// component: UserDetail
// },
//角色管理
// {
// path: "/op/roleAddRole",
// name: "AddRole",
// component: AddRole,
// meta: {
// requireAuth: true,
// keepAlive: true
// }
// },
{
path
:
"/op/roleManageRole"
,
name
:
"ManageRole"
,
...
...
@@ -106,10 +91,7 @@ const routes = [
{
path
:
"/op/roleRoleDetail"
,
name
:
"RoleDetail"
,
component
:
RoleDetail
,
meta
:
{
keepAlive
:
true
}
component
:
RoleDetail
},
// 商品管理路由
...
goodsRouter
,
...
...
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