fix: 兼容后端 code 类型不统一问题

This commit is contained in:
ZhuRui
2026-08-07 11:20:30 +08:00
parent ea24625805
commit 05c3d518fa
32 changed files with 42 additions and 42 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ const request = (
const data = await res.json();
if (data.code === '401') {
if (data.code == 401) {
handleUnauthorized(data.msg);
return Promise.reject(new Error(data.msg || 'Unauthorized'));
}