mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
fix: 解决MCP接入点输入框没有显示报错信息的问题
This commit is contained in:
parent
8a01432e9d
commit
b2ed5eb2c0
4 changed files with 9 additions and 2 deletions
|
|
@ -170,6 +170,9 @@ export default {
|
||||||
RequestService.clearRequestTime();
|
RequestService.clearRequestTime();
|
||||||
callback(res);
|
callback(res);
|
||||||
})
|
})
|
||||||
|
.fail((err) => {
|
||||||
|
callback(err);
|
||||||
|
})
|
||||||
.networkFail(() => {
|
.networkFail(() => {
|
||||||
RequestService.reAjaxFun(() => {
|
RequestService.reAjaxFun(() => {
|
||||||
this.getAgentMcpAccessAddress(agentId, callback);
|
this.getAgentMcpAccessAddress(agentId, callback);
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,10 @@ export default {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.resetData();
|
this.resetData();
|
||||||
this.loadSessions();
|
this.loadSessions();
|
||||||
|
} else {
|
||||||
|
this.audioElement?.pause();
|
||||||
|
this.audioElement = null;
|
||||||
|
this.playingAudioId = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dialogVisible(val) {
|
dialogVisible(val) {
|
||||||
|
|
|
||||||
|
|
@ -314,7 +314,7 @@ export default {
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
this.mcpUrl = res.data.data || "";
|
this.mcpUrl = res.data.data || "";
|
||||||
} else {
|
} else {
|
||||||
this.mcpUrl = "";
|
this.mcpUrl = res.data.msg;
|
||||||
console.error('获取MCP地址失败:', res.data.msg);
|
console.error('获取MCP地址失败:', res.data.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -276,7 +276,7 @@ export default {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.left-add {
|
.left-add {
|
||||||
width: 105px;
|
padding: 0 14px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
border-radius: 17px;
|
border-radius: 17px;
|
||||||
background: #5778ff;
|
background: #5778ff;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue