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 === void 0) throw Error(e);
50
- f.onRequestError(e);
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));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "liyu-pc-base",
3
3
  "type": "module",
4
4
  "license": "MIT",
5
- "version": "1.0.1055",
5
+ "version": "1.0.1059",
6
6
  "scripts": {
7
7
  "build": "vite build",
8
8
  "build:watch": "vite build --watch --mode development",