fix: update MCP access permissions and improve titles in routing (#14281)

This commit is contained in:
蘭 authored and GitHub committed 2026-11-02 22:16:53 +08:00
1 parent 2401bb16a2
commit 963c1463a8
14 files changed
+33 -9

No files matched your search

+2
View File
@@ -1810,6 +1810,8 @@ const message = {
},
},
panelMCP: {
accessTitle: '1Panel MCP Access',
servicesTitle: 'MCP Services',
websiteCancelPendingBind: 'Cancel binding',
websiteBinding: 'Website binding',
websiteBind: 'Bind website',
+2
View File
@@ -1825,6 +1825,8 @@ const message = {
},
},
panelMCP: {
accessTitle: 'Acceso a 1Panel MCP',
servicesTitle: 'Servicios MCP',
websiteCancelPendingBind: 'Cancelar vinculación',
websiteBinding: 'Vinculación de sitio web',
websiteBind: 'Vincular sitio web',
+2
View File
@@ -1789,6 +1789,8 @@ const message = {
},
},
panelMCP: {
accessTitle: 'دسترسی به 1Panel MCP',
servicesTitle: 'سرویس‌های MCP',
websiteCancelPendingBind: 'لغو اتصال',
websiteBinding: 'اتصال وب‌سایت',
websiteBind: 'اتصال وب‌سایت',
+2
View File
@@ -1793,6 +1793,8 @@ const message = {
},
},
panelMCP: {
accessTitle: '1Panel MCP 接続',
servicesTitle: 'MCP サービス',
websiteCancelPendingBind: '関連付けを取り消す',
websiteBinding: 'ウェブサイトの関連付け',
websiteBind: 'ウェブサイトを関連付け',
+2
View File
@@ -1775,6 +1775,8 @@ const message = {
},
},
panelMCP: {
accessTitle: '1Panel MCP 연결',
servicesTitle: 'MCP 서비스',
websiteCancelPendingBind: '연결 취소',
websiteBinding: '웹사이트 연결',
websiteBind: '웹사이트 연결',
+2
View File
@@ -1765,6 +1765,8 @@ const message = {
},
},
panelMCP: {
accessTitle: 'ການເຂົ້າເຖິງ 1Panel MCP',
servicesTitle: 'ບໍລິການ MCP',
websiteCancelPendingBind: 'ຍົກເລີກການຜູກ',
websiteBinding: 'ການຜູກເວັບໄຊ',
websiteBind: 'ຜູກເວັບໄຊ',
+2
View File
@@ -1823,6 +1823,8 @@ const message = {
},
},
panelMCP: {
accessTitle: 'Akses 1Panel MCP',
servicesTitle: 'Perkhidmatan MCP',
websiteCancelPendingBind: 'Batalkan pautan',
websiteBinding: 'Pautan laman web',
websiteBind: 'Pautkan laman web',
+2
View File
@@ -1824,6 +1824,8 @@ const message = {
},
},
panelMCP: {
accessTitle: 'Acesso ao 1Panel MCP',
servicesTitle: 'Serviços MCP',
websiteCancelPendingBind: 'Cancelar vinculação',
websiteBinding: 'Vinculação de site',
websiteBind: 'Vincular site',
+2
View File
@@ -1813,6 +1813,8 @@ const message = {
},
},
panelMCP: {
accessTitle: 'Подключение к 1Panel MCP',
servicesTitle: 'Сервисы MCP',
websiteCancelPendingBind: 'Отменить привязку',
websiteBinding: 'Привязка сайта',
websiteBind: 'Привязать сайт',
+2
View File
@@ -1819,6 +1819,8 @@ const message = {
},
},
panelMCP: {
accessTitle: '1Panel MCP Erişimi',
servicesTitle: 'MCP Hizmetleri',
websiteCancelPendingBind: 'Bağlamayı iptal et',
websiteBinding: 'Web sitesi bağlama',
websiteBind: 'Web sitesi bağla',
+2
View File
@@ -1714,6 +1714,8 @@ const message = {
},
},
panelMCP: {
accessTitle: '1Panel MCP 接入',
servicesTitle: 'MCP 服務',
websiteCancelPendingBind: '取消綁定',
websiteBinding: '網站綁定',
websiteBind: '綁定網站',
+2
View File
@@ -1728,6 +1728,8 @@ const message = {
},
},
panelMCP: {
accessTitle: '1Panel MCP 接入',
servicesTitle: 'MCP 服务',
websiteCancelPendingBind: '取消绑定',
websiteBinding: '网站绑定',
websiteBind: '绑定网站',
+3 -3
View File
@@ -81,7 +81,7 @@ const aiRouter = {
{
path: '/ai/mcp',
name: 'MCPServer',
redirect: () => (GlobalStore().hasPermission('ai_mcp_view') ? '/ai/mcp/server' : '/ai/mcp/1panel'),
redirect: () => (GlobalStore().hasPermission('mcp_access_view') ? '/ai/mcp/1panel' : '/ai/mcp/server'),
meta: {
icon: 'p-mcp-menu',
title: 'menu.mcp',
@@ -94,7 +94,7 @@ const aiRouter = {
hidden: true,
component: () => import('@/views/ai/mcp/server/index.vue'),
meta: {
title: 'menu.mcp',
title: 'panelMCP.servicesTitle',
activeMenu: '/ai/mcp',
permission: 'ai_mcp_view',
},
@@ -105,7 +105,7 @@ const aiRouter = {
hidden: true,
component: () => import('@/views/ai/mcp/panel/index.vue'),
meta: {
title: 'panelMCP.title',
title: 'panelMCP.accessTitle',
activeMenu: '/ai/mcp',
permission: 'mcp_access_view',
},
+6 -6
View File
@@ -8,14 +8,14 @@ import { computed } from 'vue';
const buttons = computed<RouterButton[]>(() => [
{
label: i18n.global.t('menu.mcp'),
path: '/ai/mcp/server',
permission: 'ai_mcp_view',
},
{
label: i18n.global.t('panelMCP.title'),
label: i18n.global.t('panelMCP.accessTitle'),
path: '/ai/mcp/1panel',
permission: 'mcp_access_view',
},
{
label: i18n.global.t('panelMCP.servicesTitle'),
path: '/ai/mcp/server',
permission: 'ai_mcp_view',
},
]);
</script>