@clownlee/cores 1.0.24 → 1.0.25

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2738,14 +2738,8 @@ async function handleResponseInterceptor(response, store, refreshConfig, axiosIn
2738
2738
  retryFn
2739
2739
  );
2740
2740
  } catch (refreshError) {
2741
- return {
2742
- ...response,
2743
- data: {
2744
- code: 0,
2745
- message: "",
2746
- data: void 0
2747
- }
2748
- };
2741
+ return new Promise(() => {
2742
+ });
2749
2743
  }
2750
2744
  } else if (code > 0 && code !== TENANT_SUPER_ADMIN_FIRST_LOGIN_CODE) {
2751
2745
  throw new Error((responseData == null ? void 0 : responseData.message) ?? "请求失败");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clownlee/cores",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "公共核心库,提供统一的 HTTP 请求能力和自动 token 刷新功能",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "author": "",
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@clownlee/http": "^1.0.9",
33
+ "@clownlee/http": "^1.0.10",
34
34
  "pinia": "^2.1.7",
35
35
  "vue": "^3.5.25",
36
36
  "cropper": "^4.1.0",