@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-web-kits/base-tools-web",
3
- "version": "1.0.2-alpha.6",
3
+ "version": "1.1.0-alpha.0",
4
4
  "sideEffects": false,
5
5
  "description": "Independent Web utilities package built from src/web.",
6
6
  "keywords": [
@@ -39,7 +39,7 @@ const appConfig: AppConfig = {};
39
39
  /**
40
40
  * 获取应用配置
41
41
  */
42
- export function getAppConfig() {
42
+ export function getBaseToolsConfig() {
43
43
  return appConfig;
44
44
  }
45
45
 
@@ -6,7 +6,7 @@ import {
6
6
  pickBy,
7
7
  toDayjs,
8
8
  } from '../../ts';
9
- import { getAppConfig } from '../config';
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 = getAppConfig();
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 } = getAppConfig();
400
+ const { log } = getBaseToolsConfig();
401
401
  const { isLog = true } = options.config;
402
402
 
403
403
  if (!log || !isLog) return;