feat(权限优化)1.AI对话中点击快捷标签问题时,明明已经配置了默认默写为什么还会提示配置?必须点击一下保存并关闭才可以这个不对,只要配置了就可以问答不需要再让用户过来点击一次!如图一、二所示
deploy-hxtesting / build-and-deploy (push) Successful in 1m20s
deploy-hxtesting / build-and-deploy (push) Successful in 1m20s
2.知识库中的企业培训(课件)、企业培训(试题)、配置中心、组织架构、共享空间如图三所示可查看权限归属到超级管理员权限中!如何对
This commit is contained in:
1 parent
353f60a175
commit
043e0485e2
14 files changed
+368
-74
No files matched your search
@@ -208,10 +208,11 @@ const router = createRouter({
|
||||
{
|
||||
// 组织架构:租户级共享组织架构(部门 + 员工档案),
|
||||
// 业务模块(企业培训等)按需引用,部门岗位只维护一份。
|
||||
// 000163 权限收口:仅平台超级管理员可查看(菜单入口同步收口)。
|
||||
path: "org-center",
|
||||
name: "orgCenter",
|
||||
component: () => import("../views/org-center/OrgCenter.vue"),
|
||||
meta: { requiresInit: true, requiresAuth: true }
|
||||
meta: { requiresInit: true, requiresAuth: true, requiresSystemAdmin: true }
|
||||
},
|
||||
{
|
||||
path: "agents",
|
||||
@@ -258,7 +259,8 @@ const router = createRouter({
|
||||
path: "organizations",
|
||||
name: "organizationList",
|
||||
component: () => import("../views/organization/OrganizationList.vue"),
|
||||
meta: { requiresInit: true, requiresAuth: true, requiredCapability: 'organizations' }
|
||||
// 000163 权限收口:共享空间仅平台超级管理员可查看(菜单入口同步收口)。
|
||||
meta: { requiresInit: true, requiresAuth: true, requiredCapability: 'organizations', requiresSystemAdmin: true }
|
||||
},
|
||||
// Compatibility redirects for /platform/system/* URLs. System
|
||||
// administration surfaces live as dedicated sections inside the
|
||||
@@ -468,6 +470,13 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
}
|
||||
|
||||
// 培训路由按 tab 共用(training/:tab),「配置中心」(rules) 页签单独收口:
|
||||
// 仅平台超级管理员可查看,其余用户弹回培训工作台(000163)。
|
||||
if (to.name === 'trainingTab' && String(to.params.tab) === 'rules' && !authStore.isSystemAdmin) {
|
||||
next('/platform/training/dashboard')
|
||||
return
|
||||
}
|
||||
|
||||
next()
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user