5 路由补 meta.requiresAuth 收口 #3398

PR #3398 扩展:守卫按 meta 自动拦截后,原硬编码未补 requiresAuth 的 5 个路由(UserManagement / DictManagement / ProviderManagement / AgentTemplateManagement / TemplateQuickConfig)仍可匿名访问。逐一补 meta.requiresAuth=true 与 title 字段,对齐其他已标路由的形态。不增删路由、不动其它文件。
This commit is contained in:
hrz 2026-10-07 12:00:37 +08:00
parent 047334e70f
commit fb203878bf

View file

@ -67,6 +67,10 @@ const routes = [
name: 'UserManagement',
component: function () {
return import('../views/UserManagement.vue')
},
meta: {
requiresAuth: true,
title: '用户管理'
}
},
{
@ -147,6 +151,10 @@ const routes = [
name: 'DictManagement',
component: function () {
return import('../views/DictManagement.vue')
},
meta: {
requiresAuth: true,
title: '字典管理'
}
},
{
@ -154,6 +162,10 @@ const routes = [
name: 'ProviderManagement',
component: function () {
return import('../views/ProviderManagement.vue')
},
meta: {
requiresAuth: true,
title: '模型供应方管理'
}
},
// 添加默认角色管理路由
@ -162,6 +174,10 @@ const routes = [
name: 'AgentTemplateManagement',
component: function () {
return import('../views/AgentTemplateManagement.vue')
},
meta: {
requiresAuth: true,
title: '智能体模板管理'
}
},
// 添加模板快速配置路由
@ -170,6 +186,10 @@ const routes = [
name: 'TemplateQuickConfig',
component: function () {
return import('../views/TemplateQuickConfig.vue')
},
meta: {
requiresAuth: true,
title: '模板快速配置'
}
},
// 功能配置页面路由