mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
fix: 修复获取设备状态接口报错时, 没有执行失败回调导致loading一直存在
This commit is contained in:
parent
b78292b270
commit
ff6286ffcc
1 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ export default {
|
|||
RequestService.clearRequestTime();
|
||||
callback(res);
|
||||
})
|
||||
.fail((res) => {
|
||||
callback(res);
|
||||
})
|
||||
.networkFail((err) => {
|
||||
console.error('获取设备状态失败:', err);
|
||||
RequestService.reAjaxFun(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue