@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 CHANGED
@@ -46,9 +46,9 @@ import { useCountDown } from '@base-web-kits/base-tools-react';
46
46
  import { useResizeObserver } from '@base-web-kits/base-tools-vue';
47
47
 
48
48
  // Uni 模块
49
- import { setAppConfig, chooseMedia, toPayWx } from '@base-web-kits/base-tools-uni';
49
+ import { setBaseToolsConfig, chooseMedia, toPayWx } from '@base-web-kits/base-tools-uni';
50
50
 
51
- setAppConfig({
51
+ setBaseToolsConfig({
52
52
  pathHome: '/pages/tabbar/home/index',
53
53
  pathLogin: '/pages/login/index',
54
54
  pathWebview: '/pages/webview/index',
@@ -718,7 +718,7 @@ var baseToolsWeb = (() => {
718
718
  copyText: () => copyText,
719
719
  copyUrl: () => copyUrl,
720
720
  download: () => download,
721
- getAppConfig: () => getAppConfig,
721
+ getBaseToolsConfig: () => getBaseToolsConfig,
722
722
  getBrowserName: () => getBrowserName,
723
723
  getBrowserVersion: () => getBrowserVersion,
724
724
  getCookie: () => getCookie,
@@ -961,7 +961,7 @@ var baseToolsWeb = (() => {
961
961
 
962
962
  // src/web/config/index.ts
963
963
  var appConfig = {};
964
- function getAppConfig() {
964
+ function getBaseToolsConfig() {
965
965
  return appConfig;
966
966
  }
967
967
  function setBaseToolsConfig(newConfig) {
@@ -1790,7 +1790,7 @@ var baseToolsWeb = (() => {
1790
1790
  return;
1791
1791
  }
1792
1792
  }
1793
- const appConfig2 = getAppConfig();
1793
+ const appConfig2 = getBaseToolsConfig();
1794
1794
  if (showLoading) appConfig2.showLoading?.();
1795
1795
  let isTimeout = false;
1796
1796
  const timeoutId = setTimeout(() => {
@@ -1857,7 +1857,7 @@ var baseToolsWeb = (() => {
1857
1857
  return promise;
1858
1858
  }
1859
1859
  function logRequestInfo(options) {
1860
- const { log } = getAppConfig();
1860
+ const { log } = getBaseToolsConfig();
1861
1861
  const { isLog = true } = options.config;
1862
1862
  if (!log || !isLog) return;
1863
1863
  const { config, res, fromCache = false, startTime, status, e } = options;