mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
fix: 解决MCP接入点输入框没有显示报错信息的问题
This commit is contained in:
@@ -90,6 +90,10 @@ export default {
|
||||
if (val) {
|
||||
this.resetData();
|
||||
this.loadSessions();
|
||||
} else {
|
||||
this.audioElement?.pause();
|
||||
this.audioElement = null;
|
||||
this.playingAudioId = null;
|
||||
}
|
||||
},
|
||||
dialogVisible(val) {
|
||||
|
||||
@@ -314,7 +314,7 @@ export default {
|
||||
if (res.data.code === 0) {
|
||||
this.mcpUrl = res.data.data || "";
|
||||
} else {
|
||||
this.mcpUrl = "";
|
||||
this.mcpUrl = res.data.msg;
|
||||
console.error('获取MCP地址失败:', res.data.msg);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user