@@ -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 ] ,
@@ -102,6 +105,7 @@ const systemRouter = {
102105 activeMenu : '/system' ,
103106 parentPath : '/system' ,
104107 parentName : 'system' ,
108+ sameRoute : 'authorization' ,
105109 } ,
106110 component : ( ) => import ( '@/views/system/resource-authorization/index.vue' ) ,
107111 } ,
@@ -187,10 +191,11 @@ const systemRouter = {
187191 activeMenu : '/system' ,
188192 parentPath : '/system' ,
189193 parentName : 'system' ,
194+ sameRoute : 'chat' ,
190195 permission : [
191196 new ComplexPermission (
192- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
193- [ PermissionConst . WORKSPACE_USER_GROUP_READ ] ,
197+ [ RoleConst . WORKSPACE_MANAGE , RoleConst . ADMIN ] ,
198+ [ PermissionConst . WORKSPACE_CHAT_USER_READ , PermissionConst . CHAT_USER_READ ] ,
194199 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
195200 'OR' ,
196201 ) ,
@@ -207,8 +212,8 @@ const systemRouter = {
207212 parentName : 'system' ,
208213 permission : [
209214 new ComplexPermission (
210- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
211- [ PermissionConst . WORKSPACE_CHAT_USER_READ ] ,
215+ [ RoleConst . WORKSPACE_MANAGE , RoleConst . ADMIN ] ,
216+ [ PermissionConst . CHAT_USER_READ , PermissionConst . WORKSPACE_CHAT_USER_READ ] ,
212217 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
213218 'OR' ,
214219 ) ,
@@ -226,8 +231,8 @@ const systemRouter = {
226231 parentName : 'system' ,
227232 permission : [
228233 new ComplexPermission (
229- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
230- [ PermissionConst . WORKSPACE_USER_GROUP_READ ] ,
234+ [ RoleConst . WORKSPACE_MANAGE , RoleConst . ADMIN ] ,
235+ [ PermissionConst . WORKSPACE_USER_GROUP_READ , PermissionConst . USER_GROUP_READ ] ,
231236 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
232237 'OR' ,
233238 ) ,
@@ -245,7 +250,7 @@ const systemRouter = {
245250 parentName : 'system' ,
246251 permission : [
247252 new ComplexPermission (
248- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
253+ [ RoleConst . ADMIN ] ,
249254 [ PermissionConst . CHAT_USER_AUTH_READ ] ,
250255 [ EditionConst . IS_EE , EditionConst . IS_PE ] ,
251256 'OR' ,
@@ -266,6 +271,7 @@ const systemRouter = {
266271 activeMenu : '/system' ,
267272 parentPath : '/system' ,
268273 parentName : 'system' ,
274+ sameRoute : 'setting' ,
269275 } ,
270276 children : [
271277 {
@@ -315,6 +321,7 @@ const systemRouter = {
315321 activeMenu : '/system' ,
316322 parentPath : '/system' ,
317323 parentName : 'system' ,
324+ sameRoute : 'operate' ,
318325 permission : [ EditionConst . IS_PE , EditionConst . IS_EE ] ,
319326 } ,
320327 component : ( ) => import ( '@/views/system/operate-log/index.vue' ) ,
0 commit comments