fix: Fix menu internationalization issues (#9456)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 8s

This commit is contained in:
ssongliu 2025-07-08 14:05:55 +08:00 committed by GitHub
parent 2e8bcc09e6
commit 8ec5a5bd4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -24,7 +24,7 @@ const databaseRouter = {
name: 'MCPServer',
component: () => import('@/views/ai/mcp/server/index.vue'),
meta: {
title: 'MCP',
title: 'menu.mcp',
requiresAuth: true,
},
},

View file

@ -113,6 +113,8 @@ const oldProto = ref();
const acceptParams = (params: DialogProps): void => {
dialogData.value = params;
oldUrl.value = params.rowData.downloadUrl;
oldProto.value = params.rowData.protocol;
title.value = i18n.global.t('commons.button.' + dialogData.value.title);
drawerVisible.value = true;
};