no message

This commit is contained in:
kuaifan 2025-10-26 09:59:31 +08:00
parent 95ca496691
commit 7fa075fa75
14 changed files with 37 additions and 12 deletions

View File

@ -2222,6 +2222,7 @@ AI 未生成内容
桌面 MCP 服务器
启用桌面 MCP 服务器
关闭 MCP 服务器
MCP 服务器已启动成功!
服务地址
接入配置

View File

@ -32134,5 +32134,17 @@
"fr": "Bleu lac",
"id": "Biru Danau",
"ru": "Озёрный синий"
},
{
"key": "关闭 MCP 服务器",
"zh": "",
"zh-CHT": "關閉 MCP 伺服器",
"en": "Shut down the MCP server",
"ko": "MCP 서버 종료",
"ja": "MCPサーバーをシャットダウンする",
"de": "MCP-Server herunterfahren",
"fr": "Fermer le serveur MCP",
"id": "Tutup server MCP",
"ru": "Выключить сервер MCP"
}
]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -953,10 +953,10 @@ export default {
});
return;
case 'mcpServer':
this.mcpHelperShow = true;
if (this.mcpServerStatus.running !== 'running') {
this.mcpHelperShow = true;
this.$store.dispatch('toggleMcpServer');
}
this.$store.dispatch('toggleMcpServer');
return;
case 'logout':
$A.modalConfirm({

View File

@ -32,6 +32,7 @@
</div>
<div slot="footer" class="adaption">
<Button type="default" @click="onCloseMcp">{{$L('关闭 MCP 服务器')}}</Button>
<Button type="primary" @click="mcpHelperShow = false">{{ $L('我知道了') }}</Button>
</div>
</Modal>
@ -129,6 +130,8 @@
</style>
<script>
import { mapState } from 'vuex';
export default {
name: "MCPHelper",
props: {
@ -149,6 +152,8 @@ export default {
}
},
computed: {
...mapState(['mcpServerStatus']),
mcpHelperShow: {
get() {
return this.value;
@ -161,6 +166,13 @@ export default {
methods: {
copyMcpConfig() {
this.copyText(this.$refs.mcpConfig.textContent);
},
onCloseMcp() {
if (this.mcpServerStatus.running === 'running') {
this.$store.dispatch('toggleMcpServer');
}
this.mcpHelperShow = false;
}
}
}