Commit dc9cb824 authored by lvweichao's avatar lvweichao

fix: router conflict

parent f4835bcb
...@@ -54,10 +54,10 @@ export const PERMISSIONNAME_PAGEMODULE = (function () { ...@@ -54,10 +54,10 @@ export const PERMISSIONNAME_PAGEMODULE = (function () {
* router 用该配置做路由权限拦截。需要增加权限拦截的路由,需在此添加配置。 * router 用该配置做路由权限拦截。需要增加权限拦截的路由,需在此添加配置。
*/ */
export const PATH_PERMISSION_NAME = { export const PATH_PERMISSION_NAME = {
'/enterprise/certification': 'enterprise_certification_management', '/op/enterprise/certification': 'enterprise_certification_management',
'/enterprise/audit': 'enterprise_certification_management.audit', '/op/enterprise/audit': 'enterprise_certification_management.audit',
'/enterprise/establish': 'enterprise_certification_management.create', '/op/enterprise/establish': 'enterprise_certification_management.create',
'/lifeNo': 'life_official_account_management', '/op/lifeNo': 'life_official_account_management',
'/roleManageRole': 'role_management', '/op/roleManageRole': 'role_management',
'/user': 'user_management' '/op/user': 'user_management'
} }
\ No newline at end of file
...@@ -12,6 +12,6 @@ export default { ...@@ -12,6 +12,6 @@ export default {
components: { components: {
Layout, Layout,
RoleList RoleList
}, }
}; };
</script> </script>
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
}, },
methods: { methods: {
toRoleDetail (row) { toRoleDetail (row) {
this.$router.push({ name: 'RoleDetail', query: { roleId: row.role_id } }); this.$router.push({ name: 'withdrawalRoleDetail', query: { roleId: row.role_id } });
}, },
goBack () { goBack () {
this.$router.go(-1) this.$router.go(-1)
......
...@@ -34,7 +34,7 @@ const withdrawalRoutes = [ ...@@ -34,7 +34,7 @@ const withdrawalRoutes = [
}, },
{ {
path: "/op/withdrawal/roleManageRole", path: "/op/withdrawal/roleManageRole",
name: "ManageRole", name: "withdrawalManageRole",
component: () => component: () =>
import( import(
/* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/Role/manage-role" /* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/Role/manage-role"
...@@ -46,7 +46,7 @@ const withdrawalRoutes = [ ...@@ -46,7 +46,7 @@ const withdrawalRoutes = [
}, },
{ {
path: "/op/withdrawal/roleRoleDetail", path: "/op/withdrawal/roleRoleDetail",
name: "RoleDetail", name: "withdrawalRoleDetail",
component: () => component: () =>
import( import(
/* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/Role/role-detail" /* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/Role/role-detail"
......
...@@ -80,21 +80,6 @@ const routes = [ ...@@ -80,21 +80,6 @@ const routes = [
name: "/op/User", name: "/op/User",
component: 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", path: "/op/roleManageRole",
name: "ManageRole", name: "ManageRole",
...@@ -106,10 +91,7 @@ const routes = [ ...@@ -106,10 +91,7 @@ const routes = [
{ {
path: "/op/roleRoleDetail", path: "/op/roleRoleDetail",
name: "RoleDetail", name: "RoleDetail",
component: RoleDetail, component: RoleDetail
meta: {
keepAlive: true
}
}, },
// 商品管理路由 // 商品管理路由
...goodsRouter, ...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