@fmdevui/fm-dev 1.0.43 → 1.0.45
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.
- package/es/_virtual/de-DE.mjs +1 -1
- package/es/_virtual/en-US.mjs +1 -1
- package/es/_virtual/es-ES.mjs +1 -1
- package/es/_virtual/fr-FR.mjs +1 -1
- package/es/_virtual/it-IT.mjs +1 -1
- package/es/_virtual/ja-JP.mjs +1 -1
- package/es/_virtual/ko-KR.mjs +1 -1
- package/es/_virtual/nb-NO.mjs +1 -1
- package/es/_virtual/pt-BR.mjs +1 -1
- package/es/_virtual/ru-RU.mjs +1 -1
- package/es/_virtual/th-TH.mjs +1 -1
- package/es/_virtual/vi-VN.mjs +1 -1
- package/es/_virtual/zh-CN.mjs +1 -1
- package/es/_virtual/zh-HK.mjs +1 -1
- package/es/_virtual/zh-TW.mjs +1 -1
- package/es/core/api/utils/request.d.ts +4 -1
- package/es/packages/core/api/utils/request.mjs +39 -1
- package/index.js +45 -7
- package/index.min.js +29 -29
- package/index.min.mjs +29 -29
- package/index.mjs +46 -8
- package/lib/_virtual/de-DE.js +1 -1
- package/lib/_virtual/en-US.js +1 -1
- package/lib/_virtual/es-ES.js +1 -1
- package/lib/_virtual/fr-FR.js +1 -1
- package/lib/_virtual/it-IT.js +1 -1
- package/lib/_virtual/ja-JP.js +1 -1
- package/lib/_virtual/ko-KR.js +1 -1
- package/lib/_virtual/nb-NO.js +1 -1
- package/lib/_virtual/pt-BR.js +1 -1
- package/lib/_virtual/ru-RU.js +1 -1
- package/lib/_virtual/th-TH.js +1 -1
- package/lib/_virtual/vi-VN.js +1 -1
- package/lib/_virtual/zh-CN.js +1 -1
- package/lib/_virtual/zh-HK.js +1 -1
- package/lib/_virtual/zh-TW.js +1 -1
- package/lib/core/api/utils/request.d.ts +4 -1
- package/lib/packages/core/api/utils/request.js +38 -0
- package/package.json +1 -1
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/de-DE.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/en-US.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/es-ES.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/fr-FR.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/it-IT.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ja-JP.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ko-KR.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/nb-NO.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/pt-BR.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ru-RU.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/th-TH.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/vi-VN.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CHT.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CN.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-HK.mjs +0 -0
- /package/es/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-TW.mjs +0 -0
- /package/lib/{make-installer.css → index.css} +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/de-DE.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/en-US.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/es-ES.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/fr-FR.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/it-IT.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ja-JP.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ko-KR.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/nb-NO.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/pt-BR.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ru-RU.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/th-TH.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/vi-VN.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CHT.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CN.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-HK.js +0 -0
- /package/lib/node_modules/.pnpm/{vxe-table@4.13.48_vue@3.5.17_typescript@5.8.3_ → vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-TW.js +0 -0
package/es/_virtual/de-DE.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireDeDE } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireDeDE } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/de-DE.mjs';
|
|
3
3
|
|
|
4
4
|
var deDEExports = requireDeDE();
|
|
5
5
|
var deDE = /*@__PURE__*/getDefaultExportFromCjs(deDEExports);
|
package/es/_virtual/en-US.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireEnUS } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireEnUS } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/en-US.mjs';
|
|
3
3
|
|
|
4
4
|
var enUSExports = requireEnUS();
|
|
5
5
|
var msMY = /*@__PURE__*/getDefaultExportFromCjs(enUSExports);
|
package/es/_virtual/es-ES.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireEsES } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireEsES } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/es-ES.mjs';
|
|
3
3
|
|
|
4
4
|
var esESExports = requireEsES();
|
|
5
5
|
var esES = /*@__PURE__*/getDefaultExportFromCjs(esESExports);
|
package/es/_virtual/fr-FR.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireFrFR } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireFrFR } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/fr-FR.mjs';
|
|
3
3
|
|
|
4
4
|
var frFRExports = requireFrFR();
|
|
5
5
|
var frFR = /*@__PURE__*/getDefaultExportFromCjs(frFRExports);
|
package/es/_virtual/it-IT.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireItIT } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireItIT } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/it-IT.mjs';
|
|
3
3
|
|
|
4
4
|
var itITExports = requireItIT();
|
|
5
5
|
var itIT = /*@__PURE__*/getDefaultExportFromCjs(itITExports);
|
package/es/_virtual/ja-JP.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireJaJP } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireJaJP } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ja-JP.mjs';
|
|
3
3
|
|
|
4
4
|
var jaJPExports = requireJaJP();
|
|
5
5
|
var jaJP = /*@__PURE__*/getDefaultExportFromCjs(jaJPExports);
|
package/es/_virtual/ko-KR.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireKoKR } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireKoKR } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ko-KR.mjs';
|
|
3
3
|
|
|
4
4
|
var koKRExports = requireKoKR();
|
|
5
5
|
var koKR = /*@__PURE__*/getDefaultExportFromCjs(koKRExports);
|
package/es/_virtual/nb-NO.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireNbNO } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireNbNO } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/nb-NO.mjs';
|
|
3
3
|
|
|
4
4
|
var nbNOExports = requireNbNO();
|
|
5
5
|
var noNO = /*@__PURE__*/getDefaultExportFromCjs(nbNOExports);
|
package/es/_virtual/pt-BR.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requirePtBR } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requirePtBR } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/pt-BR.mjs';
|
|
3
3
|
|
|
4
4
|
var ptBRExports = requirePtBR();
|
|
5
5
|
var ptBR = /*@__PURE__*/getDefaultExportFromCjs(ptBRExports);
|
package/es/_virtual/ru-RU.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireRuRU } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireRuRU } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ru-RU.mjs';
|
|
3
3
|
|
|
4
4
|
var ruRUExports = requireRuRU();
|
|
5
5
|
var ruRU = /*@__PURE__*/getDefaultExportFromCjs(ruRUExports);
|
package/es/_virtual/th-TH.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireThTH } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireThTH } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/th-TH.mjs';
|
|
3
3
|
|
|
4
4
|
var thTHExports = requireThTH();
|
|
5
5
|
var thTH = /*@__PURE__*/getDefaultExportFromCjs(thTHExports);
|
package/es/_virtual/vi-VN.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireViVN } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireViVN } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/vi-VN.mjs';
|
|
3
3
|
|
|
4
4
|
var viVNExports = requireViVN();
|
|
5
5
|
var viVN = /*@__PURE__*/getDefaultExportFromCjs(viVNExports);
|
package/es/_virtual/zh-CN.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireZhCN } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireZhCN } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-CN.mjs';
|
|
3
3
|
|
|
4
4
|
var zhCNExports = requireZhCN();
|
|
5
5
|
var zhCN = /*@__PURE__*/getDefaultExportFromCjs(zhCNExports);
|
package/es/_virtual/zh-HK.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireZhHK } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireZhHK } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-HK.mjs';
|
|
3
3
|
|
|
4
4
|
var zhHKExports = requireZhHK();
|
|
5
5
|
var zhHK = /*@__PURE__*/getDefaultExportFromCjs(zhHKExports);
|
package/es/_virtual/zh-TW.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
2
|
-
import { __require as requireZhTW } from '../node_modules/.pnpm/vxe-table@4.13.
|
|
2
|
+
import { __require as requireZhTW } from '../node_modules/.pnpm/vxe-table@4.13.49_vue@3.5.17_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-TW.mjs';
|
|
3
3
|
|
|
4
4
|
var zhTWExports = requireZhTW();
|
|
5
5
|
var zhTW = /*@__PURE__*/getDefaultExportFromCjs(zhTWExports);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
export interface CustomAxiosRequestConfig extends AxiosRequestConfig {
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
}
|
|
2
5
|
export declare const service: AxiosInstance;
|
|
3
6
|
export declare const accessTokenKey: string;
|
|
4
7
|
export declare const refreshAccessTokenKey: string;
|
|
@@ -32,5 +35,5 @@ export declare function getJWTDate(timestamp: number): Date;
|
|
|
32
35
|
* @config AxiosRequestConfig 请求参数
|
|
33
36
|
* @returns 返回对象
|
|
34
37
|
*/
|
|
35
|
-
export declare function request2(config:
|
|
38
|
+
export declare function request2(config: CustomAxiosRequestConfig): any;
|
|
36
39
|
export default service;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import '../../utils/index.mjs';
|
|
3
|
-
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { ElLoading, ElMessage } from 'element-plus';
|
|
4
4
|
import { PUB } from '../../utils/const/index.mjs';
|
|
5
5
|
import { Local, Session } from '../../utils/storage/index.mjs';
|
|
6
6
|
|
|
@@ -25,8 +25,34 @@ const clearAccessTokens = () => {
|
|
|
25
25
|
window.location.reload();
|
|
26
26
|
};
|
|
27
27
|
const axiosInstance = axios;
|
|
28
|
+
let loadingCount = 0;
|
|
29
|
+
let loadingInstance = null;
|
|
30
|
+
function startLoading() {
|
|
31
|
+
if (loadingCount === 0) {
|
|
32
|
+
loadingInstance = ElLoading.service({
|
|
33
|
+
lock: true,
|
|
34
|
+
text: "\u52A0\u8F7D\u4E2D...",
|
|
35
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
loadingCount++;
|
|
39
|
+
}
|
|
40
|
+
function endLoading() {
|
|
41
|
+
if (loadingCount <= 0) return;
|
|
42
|
+
loadingCount--;
|
|
43
|
+
if (loadingCount === 0 && loadingInstance) {
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
loadingInstance?.close();
|
|
46
|
+
loadingInstance = null;
|
|
47
|
+
}, 200);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
28
50
|
service.interceptors.request.use(
|
|
29
51
|
(config) => {
|
|
52
|
+
const customConfig = config;
|
|
53
|
+
if (customConfig.loading) {
|
|
54
|
+
startLoading();
|
|
55
|
+
}
|
|
30
56
|
const controller = new AbortController();
|
|
31
57
|
config.signal = controller.signal;
|
|
32
58
|
const url = config.url || "";
|
|
@@ -52,11 +78,19 @@ service.interceptors.request.use(
|
|
|
52
78
|
return config;
|
|
53
79
|
},
|
|
54
80
|
(error) => {
|
|
81
|
+
const customConfig = error.config;
|
|
82
|
+
if (customConfig?.loading === true) {
|
|
83
|
+
endLoading();
|
|
84
|
+
}
|
|
55
85
|
return Promise.reject(error);
|
|
56
86
|
}
|
|
57
87
|
);
|
|
58
88
|
service.interceptors.response.use(
|
|
59
89
|
(res) => {
|
|
90
|
+
const customConfig = res.config;
|
|
91
|
+
if (customConfig.loading === true) {
|
|
92
|
+
endLoading();
|
|
93
|
+
}
|
|
60
94
|
const url = res.config.url || "";
|
|
61
95
|
abortControllerMap.delete(url);
|
|
62
96
|
var status = res.status;
|
|
@@ -95,6 +129,10 @@ service.interceptors.response.use(
|
|
|
95
129
|
return res;
|
|
96
130
|
},
|
|
97
131
|
(error) => {
|
|
132
|
+
const customConfig = error.config;
|
|
133
|
+
if (customConfig?.loading === true) {
|
|
134
|
+
endLoading();
|
|
135
|
+
}
|
|
98
136
|
if (error.response) {
|
|
99
137
|
if (error.response.status === 401) {
|
|
100
138
|
clearAccessTokens();
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.45 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
|
|
@@ -23226,7 +23226,7 @@
|
|
|
23226
23226
|
};
|
|
23227
23227
|
|
|
23228
23228
|
/*!
|
|
23229
|
-
* shared v11.1.
|
|
23229
|
+
* shared v11.1.7
|
|
23230
23230
|
* (c) 2025 kazuya kawaguchi
|
|
23231
23231
|
* Released under the MIT License.
|
|
23232
23232
|
*/
|
|
@@ -23466,7 +23466,7 @@
|
|
|
23466
23466
|
}
|
|
23467
23467
|
|
|
23468
23468
|
/*!
|
|
23469
|
-
* message-compiler v11.1.
|
|
23469
|
+
* message-compiler v11.1.7
|
|
23470
23470
|
* (c) 2025 kazuya kawaguchi
|
|
23471
23471
|
* Released under the MIT License.
|
|
23472
23472
|
*/
|
|
@@ -24972,7 +24972,7 @@
|
|
|
24972
24972
|
}
|
|
24973
24973
|
|
|
24974
24974
|
/*!
|
|
24975
|
-
* core-base v11.1.
|
|
24975
|
+
* core-base v11.1.7
|
|
24976
24976
|
* (c) 2025 kazuya kawaguchi
|
|
24977
24977
|
* Released under the MIT License.
|
|
24978
24978
|
*/
|
|
@@ -25713,7 +25713,7 @@
|
|
|
25713
25713
|
* Intlify core-base version
|
|
25714
25714
|
* @internal
|
|
25715
25715
|
*/
|
|
25716
|
-
const VERSION$1 = '11.1.
|
|
25716
|
+
const VERSION$1 = '11.1.7';
|
|
25717
25717
|
const NOT_REOSLVED = -1;
|
|
25718
25718
|
const DEFAULT_LOCALE = 'en-US';
|
|
25719
25719
|
const MISSING_RESOLVE_VALUE = '';
|
|
@@ -27012,7 +27012,7 @@
|
|
|
27012
27012
|
}
|
|
27013
27013
|
|
|
27014
27014
|
/*!
|
|
27015
|
-
* vue-i18n v11.1.
|
|
27015
|
+
* vue-i18n v11.1.7
|
|
27016
27016
|
* (c) 2025 kazuya kawaguchi
|
|
27017
27017
|
* Released under the MIT License.
|
|
27018
27018
|
*/
|
|
@@ -27025,7 +27025,7 @@
|
|
|
27025
27025
|
*
|
|
27026
27026
|
* @VueI18nGeneral
|
|
27027
27027
|
*/
|
|
27028
|
-
const VERSION = '11.1.
|
|
27028
|
+
const VERSION = '11.1.7';
|
|
27029
27029
|
/**
|
|
27030
27030
|
* This is only called in esm-bundler builds.
|
|
27031
27031
|
* istanbul-ignore-next
|
|
@@ -29519,8 +29519,34 @@
|
|
|
29519
29519
|
window.location.reload();
|
|
29520
29520
|
};
|
|
29521
29521
|
const axiosInstance = axios;
|
|
29522
|
+
let loadingCount = 0;
|
|
29523
|
+
let loadingInstance = null;
|
|
29524
|
+
function startLoading() {
|
|
29525
|
+
if (loadingCount === 0) {
|
|
29526
|
+
loadingInstance = elementPlus.ElLoading.service({
|
|
29527
|
+
lock: true,
|
|
29528
|
+
text: "\u52A0\u8F7D\u4E2D...",
|
|
29529
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
29530
|
+
});
|
|
29531
|
+
}
|
|
29532
|
+
loadingCount++;
|
|
29533
|
+
}
|
|
29534
|
+
function endLoading() {
|
|
29535
|
+
if (loadingCount <= 0) return;
|
|
29536
|
+
loadingCount--;
|
|
29537
|
+
if (loadingCount === 0 && loadingInstance) {
|
|
29538
|
+
setTimeout(() => {
|
|
29539
|
+
loadingInstance?.close();
|
|
29540
|
+
loadingInstance = null;
|
|
29541
|
+
}, 200);
|
|
29542
|
+
}
|
|
29543
|
+
}
|
|
29522
29544
|
service.interceptors.request.use(
|
|
29523
29545
|
(config) => {
|
|
29546
|
+
const customConfig = config;
|
|
29547
|
+
if (customConfig.loading) {
|
|
29548
|
+
startLoading();
|
|
29549
|
+
}
|
|
29524
29550
|
const controller = new AbortController();
|
|
29525
29551
|
config.signal = controller.signal;
|
|
29526
29552
|
const url = config.url || "";
|
|
@@ -29546,11 +29572,19 @@
|
|
|
29546
29572
|
return config;
|
|
29547
29573
|
},
|
|
29548
29574
|
(error) => {
|
|
29575
|
+
const customConfig = error.config;
|
|
29576
|
+
if (customConfig?.loading === true) {
|
|
29577
|
+
endLoading();
|
|
29578
|
+
}
|
|
29549
29579
|
return Promise.reject(error);
|
|
29550
29580
|
}
|
|
29551
29581
|
);
|
|
29552
29582
|
service.interceptors.response.use(
|
|
29553
29583
|
(res) => {
|
|
29584
|
+
const customConfig = res.config;
|
|
29585
|
+
if (customConfig.loading === true) {
|
|
29586
|
+
endLoading();
|
|
29587
|
+
}
|
|
29554
29588
|
const url = res.config.url || "";
|
|
29555
29589
|
abortControllerMap.delete(url);
|
|
29556
29590
|
var status = res.status;
|
|
@@ -29589,6 +29623,10 @@
|
|
|
29589
29623
|
return res;
|
|
29590
29624
|
},
|
|
29591
29625
|
(error) => {
|
|
29626
|
+
const customConfig = error.config;
|
|
29627
|
+
if (customConfig?.loading === true) {
|
|
29628
|
+
endLoading();
|
|
29629
|
+
}
|
|
29592
29630
|
if (error.response) {
|
|
29593
29631
|
if (error.response.status === 401) {
|
|
29594
29632
|
clearAccessTokens();
|