mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +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();
|
RequestService.clearRequestTime();
|
||||||
callback(res);
|
callback(res);
|
||||||
})
|
})
|
||||||
|
.fail((res) => {
|
||||||
|
callback(res);
|
||||||
|
})
|
||||||
.networkFail((err) => {
|
.networkFail((err) => {
|
||||||
console.error('获取设备状态失败:', err);
|
console.error('获取设备状态失败:', err);
|
||||||
RequestService.reAjaxFun(() => {
|
RequestService.reAjaxFun(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue