liyu-pc-base 1.0.1055 → 1.0.1059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46,8 +46,10 @@ var l = {
|
|
|
46
46
|
_.loading = !1;
|
|
47
47
|
});
|
|
48
48
|
} catch (e) {
|
|
49
|
-
if (_.loading = !1, f?.onRequestError
|
|
50
|
-
|
|
49
|
+
if (_.loading = !1, f?.onRequestError !== void 0) f.onRequestError(e);
|
|
50
|
+
else if (e?.isAxiosError && [401, 403].includes(e.response?.status)) console.error("[useFetchData] 列表请求鉴权失败:", e.response.status);
|
|
51
|
+
else if (e instanceof Error) throw e;
|
|
52
|
+
else console.error("[useFetchData] 列表请求业务失败:", e);
|
|
51
53
|
}
|
|
52
54
|
}, y = () => {}, b = () => {}, x = (e = !1) => new Promise((t) => {
|
|
53
55
|
t(v(e));
|