mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
5 路由补 meta.requiresAuth 收口 #3398
PR #3398 扩展:守卫按 meta 自动拦截后,原硬编码未补 requiresAuth 的 5 个路由(UserManagement / DictManagement / ProviderManagement / AgentTemplateManagement / TemplateQuickConfig)仍可匿名访问。逐一补 meta.requiresAuth=true 与 title 字段,对齐其他已标路由的形态。不增删路由、不动其它文件。
This commit is contained in:
parent
047334e70f
commit
fb203878bf
1 changed files with 20 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ const routes = [
|
||||||
name: 'UserManagement',
|
name: 'UserManagement',
|
||||||
component: function () {
|
component: function () {
|
||||||
return import('../views/UserManagement.vue')
|
return import('../views/UserManagement.vue')
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
title: '用户管理'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -147,6 +151,10 @@ const routes = [
|
||||||
name: 'DictManagement',
|
name: 'DictManagement',
|
||||||
component: function () {
|
component: function () {
|
||||||
return import('../views/DictManagement.vue')
|
return import('../views/DictManagement.vue')
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
title: '字典管理'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -154,6 +162,10 @@ const routes = [
|
||||||
name: 'ProviderManagement',
|
name: 'ProviderManagement',
|
||||||
component: function () {
|
component: function () {
|
||||||
return import('../views/ProviderManagement.vue')
|
return import('../views/ProviderManagement.vue')
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
title: '模型供应方管理'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 添加默认角色管理路由
|
// 添加默认角色管理路由
|
||||||
|
|
@ -162,6 +174,10 @@ const routes = [
|
||||||
name: 'AgentTemplateManagement',
|
name: 'AgentTemplateManagement',
|
||||||
component: function () {
|
component: function () {
|
||||||
return import('../views/AgentTemplateManagement.vue')
|
return import('../views/AgentTemplateManagement.vue')
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
title: '智能体模板管理'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 添加模板快速配置路由
|
// 添加模板快速配置路由
|
||||||
|
|
@ -170,6 +186,10 @@ const routes = [
|
||||||
name: 'TemplateQuickConfig',
|
name: 'TemplateQuickConfig',
|
||||||
component: function () {
|
component: function () {
|
||||||
return import('../views/TemplateQuickConfig.vue')
|
return import('../views/TemplateQuickConfig.vue')
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
title: '模板快速配置'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 功能配置页面路由
|
// 功能配置页面路由
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue