Merge pull request #2882 from xinnan-tech/fix-devices-loading

fix: 修复获取设备状态接口报错时, 没有执行失败回调导致loading一直存在
This commit is contained in:
wengzh 2026-01-23 15:36:46 +08:00 committed by GitHub
commit 275102f5b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,6 +95,9 @@ export default {
RequestService.clearRequestTime();
callback(res);
})
.fail((res) => {
callback(res);
})
.networkFail((err) => {
console.error('获取设备状态失败:', err);
RequestService.reAjaxFun(() => {