@@ -18,6 +18,7 @@ const systemRouter = {
1818 activeMenu : '/system' ,
1919 parentPath : '/system' ,
2020 parentName : 'system' ,
21+ sameRoute : 'user' ,
2122 permission : [ RoleConst . ADMIN , PermissionConst . USER_READ ] ,
2223 } ,
2324 component : ( ) => import ( '@/views/system/user-manage/index.vue' ) ,
@@ -32,6 +33,7 @@ const systemRouter = {
3233 activeMenu : '/system' ,
3334 parentPath : '/system' ,
3435 parentName : 'system' ,
36+ sameRoute : 'role' ,
3537 permission : [
3638 new ComplexPermission (
3739 [ RoleConst . ADMIN , RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ] ,
@@ -53,6 +55,7 @@ const systemRouter = {
5355 activeMenu : '/system' ,
5456 parentPath : '/system' ,
5557 parentName : 'system' ,
58+ sameRoute : 'workspace' ,
5659 permission : [
5760 new ComplexPermission (
5861 [ RoleConst . WORKSPACE_MANAGE , RoleConst . ADMIN ] ,
@@ -113,6 +116,7 @@ const systemRouter = {
113116 activeMenu : '/system' ,
114117 parentPath : '/system' ,
115118 parentName : 'system' ,
119+ sameRoute : 'authorization' ,
116120 } ,
117121 component : ( ) => import ( '@/views/system/resource-authorization/index.vue' ) ,
118122 } ,
@@ -198,10 +202,11 @@ const systemRouter = {
198202 activeMenu : '/system' ,
199203 parentPath : '/system' ,
200204 parentName : 'system' ,
205+ sameRoute : 'chat' ,
201206 permission : [
202207 new ComplexPermission (
203- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
204- [ PermissionConst . WORKSPACE_USER_GROUP_READ ] ,
208+ [ RoleConst . WORKSPACE_MANAGE , RoleConst . ADMIN ] ,
209+ [ PermissionConst . WORKSPACE_CHAT_USER_READ , PermissionConst . CHAT_USER_READ ] ,
205210 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
206211 'OR' ,
207212 ) ,
@@ -218,8 +223,8 @@ const systemRouter = {
218223 parentName : 'system' ,
219224 permission : [
220225 new ComplexPermission (
221- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
222- [ PermissionConst . WORKSPACE_CHAT_USER_READ ] ,
226+ [ RoleConst . WORKSPACE_MANAGE , RoleConst . ADMIN ] ,
227+ [ PermissionConst . CHAT_USER_READ , PermissionConst . WORKSPACE_CHAT_USER_READ ] ,
223228 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
224229 'OR' ,
225230 ) ,
@@ -237,8 +242,8 @@ const systemRouter = {
237242 parentName : 'system' ,
238243 permission : [
239244 new ComplexPermission (
240- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
241- [ PermissionConst . WORKSPACE_USER_GROUP_READ ] ,
245+ [ RoleConst . WORKSPACE_MANAGE , RoleConst . ADMIN ] ,
246+ [ PermissionConst . WORKSPACE_USER_GROUP_READ , PermissionConst . USER_GROUP_READ ] ,
242247 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
243248 'OR' ,
244249 ) ,
@@ -256,7 +261,7 @@ const systemRouter = {
256261 parentName : 'system' ,
257262 permission : [
258263 new ComplexPermission (
259- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
264+ [ RoleConst . ADMIN ] ,
260265 [ PermissionConst . CHAT_USER_AUTH_READ ] ,
261266 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
262267 'OR' ,
@@ -277,6 +282,7 @@ const systemRouter = {
277282 activeMenu : '/system' ,
278283 parentPath : '/system' ,
279284 parentName : 'system' ,
285+ sameRoute : 'setting' ,
280286 } ,
281287 children : [
282288 {
@@ -326,6 +332,7 @@ const systemRouter = {
326332 activeMenu : '/system' ,
327333 parentPath : '/system' ,
328334 parentName : 'system' ,
335+ sameRoute : 'operate' ,
329336 permission : [ EditionConst . IS_PE , EditionConst . IS_EE ] ,
330337 } ,
331338 component : ( ) => import ( '@/views/system/operate-log/index.vue' ) ,
0 commit comments