@base-web-kits/base-tools-web 1.0.2-alpha.6 → 1.1.0-alpha.0
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/README.md +2 -2
- package/dist/base-tools-web.umd.global.js +4 -4
- package/dist/base-tools-web.umd.global.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/web/config/index.ts +1 -1
- package/src/web/network/request.ts +3 -3
package/package.json
CHANGED
package/src/web/config/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
pickBy,
|
|
7
7
|
toDayjs,
|
|
8
8
|
} from '../../ts';
|
|
9
|
-
import {
|
|
9
|
+
import { getBaseToolsConfig } from '../config';
|
|
10
10
|
import type { AppLogInfo } from '../config';
|
|
11
11
|
|
|
12
12
|
/** 请求方法类型 */
|
|
@@ -289,7 +289,7 @@ export function request<T, D extends RequestData = RequestData>(config: RequestC
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
// 2.5 UI 反馈
|
|
292
|
-
const appConfig =
|
|
292
|
+
const appConfig = getBaseToolsConfig();
|
|
293
293
|
if (showLoading) appConfig.showLoading?.();
|
|
294
294
|
|
|
295
295
|
// 2.6 设置超时
|
|
@@ -397,7 +397,7 @@ function logRequestInfo(options: {
|
|
|
397
397
|
res?: unknown;
|
|
398
398
|
e?: unknown;
|
|
399
399
|
}) {
|
|
400
|
-
const { log } =
|
|
400
|
+
const { log } = getBaseToolsConfig();
|
|
401
401
|
const { isLog = true } = options.config;
|
|
402
402
|
|
|
403
403
|
if (!log || !isLog) return;
|