mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-24 16:13:54 +08:00
新增调整角色模版的功能
This commit is contained in:
@@ -124,6 +124,29 @@ const routes = [
|
||||
return import('../views/ProviderManagement.vue')
|
||||
}
|
||||
},
|
||||
// 添加默认角色管理路由
|
||||
{
|
||||
path: '/agent-template-management',
|
||||
name: 'AgentTemplateManagement',
|
||||
component: function () {
|
||||
return import('../views/AgentTemplateManagement.vue')
|
||||
}
|
||||
},
|
||||
// 添加模板快速配置路由
|
||||
{
|
||||
path: '/template-quick-config',
|
||||
name: 'TemplateQuickConfig',
|
||||
component: function () {
|
||||
return import('../views/TemplateQuickConfig.vue')
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/provider-management',
|
||||
name: 'ProviderManagement',
|
||||
component: function () {
|
||||
return import('../views/ProviderManagement.vue')
|
||||
}
|
||||
},
|
||||
]
|
||||
const router = new VueRouter({
|
||||
base: process.env.VUE_APP_PUBLIC_PATH || '/',
|
||||
@@ -145,7 +168,7 @@ VueRouter.prototype.push = function push(location) {
|
||||
}
|
||||
|
||||
// 需要登录才能访问的路由
|
||||
const protectedRoutes = ['home', 'RoleConfig', 'DeviceManagement', 'UserManagement', 'ModelConfig']
|
||||
const protectedRoutes = ['home', 'RoleConfig', 'DeviceManagement', 'UserManagement', 'ModelConfig', 'TemplateQuickConfig']
|
||||
|
||||
// 路由守卫
|
||||
router.beforeEach((to, from, next) => {
|
||||
|
||||
Reference in New Issue
Block a user