Commit dc9cb824 authored by lvweichao's avatar lvweichao

fix: router conflict

parent f4835bcb
......@@ -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
......@@ -12,6 +12,6 @@ export default {
components: {
Layout,
RoleList
},
}
};
</script>
......@@ -128,7 +128,7 @@ export default {
},
methods: {
toRoleDetail (row) {
this.$router.push({ name: 'RoleDetail', query: { roleId: row.role_id } });
this.$router.push({ name: 'withdrawalRoleDetail', query: { roleId: row.role_id } });
},
goBack () {
this.$router.go(-1)
......
......@@ -34,7 +34,7 @@ const withdrawalRoutes = [
},
{
path: "/op/withdrawal/roleManageRole",
name: "ManageRole",
name: "withdrawalManageRole",
component: () =>
import(
/* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/Role/manage-role"
......@@ -46,7 +46,7 @@ const withdrawalRoutes = [
},
{
path: "/op/withdrawal/roleRoleDetail",
name: "RoleDetail",
name: "withdrawalRoleDetail",
component: () =>
import(
/* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/Role/role-detail"
......
......@@ -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,
......
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