dfs-page-config 0.5.60 → 0.5.61

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.
@@ -124904,21 +124904,22 @@ const Row = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$6
124904
124904
  Ff.component(tAe.name, tAe);
124905
124905
  });
124906
124906
  }, sensors$1 = (Ff, kh) => {
124907
- if (Ff.indexOf("prod") === -1)
124907
+ var sAe;
124908
+ if (((sAe = Ff == null ? void 0 : Ff.VITE_NODE_ENV) == null ? void 0 : sAe.indexOf("prod")) === -1)
124908
124909
  return;
124909
124910
  const tAe = JSON.parse(localStorage.getItem("userInfo") || "{}");
124910
124911
  if (!tAe.name)
124911
124912
  return;
124912
- const oAe = kh || window.location.host.split(".")[0](function(sAe) {
124913
- var pAe = sAe.sdk_url, hAe = sAe.name, AAe = window, vAe = document, CAe = "script", wAe = null, EAe = null;
124914
- if (typeof AAe.sensorsDataAnalytic201505 < "u")
124913
+ const oAe = kh || window.location.host.split(".")[0](function(pAe) {
124914
+ var hAe = pAe.sdk_url, AAe = pAe.name, vAe = window, CAe = document, wAe = "script", EAe = null, _Ae = null;
124915
+ if (typeof vAe.sensorsDataAnalytic201505 < "u")
124915
124916
  return !1;
124916
- AAe.sensorsDataAnalytic201505 = hAe, AAe[hAe] = AAe[hAe] || function(DAe) {
124917
+ vAe.sensorsDataAnalytic201505 = AAe, vAe[AAe] = vAe[AAe] || function(OAe) {
124917
124918
  return function() {
124918
- (AAe[hAe]._q = AAe[hAe]._q || []).push([DAe, arguments]);
124919
+ (vAe[AAe]._q = vAe[AAe]._q || []).push([OAe, arguments]);
124919
124920
  };
124920
124921
  };
124921
- for (var _Ae = [
124922
+ for (var xAe = [
124922
124923
  "track",
124923
124924
  "quick",
124924
124925
  "register",
@@ -124938,9 +124939,9 @@ const Row = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$6
124938
124939
  "trackLink",
124939
124940
  "clearAllRegister",
124940
124941
  "getAppStatus"
124941
- ], xAe = 0; xAe < _Ae.length; xAe++)
124942
- AAe[hAe][_Ae[xAe]] = AAe[hAe].call(null, _Ae[xAe]);
124943
- AAe[hAe]._t || (wAe = vAe.createElement(CAe), EAe = vAe.getElementsByTagName(CAe)[0], wAe.async = 1, wAe.src = pAe, wAe.setAttribute("charset", "UTF-8"), AAe[hAe].para = sAe, EAe.parentNode.insertBefore(wAe, EAe));
124942
+ ], DAe = 0; DAe < xAe.length; DAe++)
124943
+ vAe[AAe][xAe[DAe]] = vAe[AAe].call(null, xAe[DAe]);
124944
+ vAe[AAe]._t || (EAe = CAe.createElement(wAe), _Ae = CAe.getElementsByTagName(wAe)[0], EAe.async = 1, EAe.src = hAe, EAe.setAttribute("charset", "UTF-8"), vAe[AAe].para = pAe, _Ae.parentNode.insertBefore(EAe, _Ae));
124944
124945
  })({
124945
124946
  sdk_url: "https://cdn.jsdelivr.net/npm/sa-sdk-javascript@1.15.25/sensorsdata.min.js",
124946
124947
  name: "sensors",
@@ -128970,7 +128971,7 @@ const analyzeResourceLoadTime = () => {
128970
128971
  );
128971
128972
  }, index = (Ff, kh) => {
128972
128973
  var oAe, sAe;
128973
- kh.env || console.error("缺少环境变量,请在main.ts中注册“DfsPageConfig”时配置env【app.use(DfsPageConfig, {..., env})】"), ["getters", "_actions"].forEach((pAe) => {
128974
+ kh.env || console.error('缺少环境变量,请在main.ts中注册“DfsPageConfig”时配置env【app.use(DfsPageConfig, {..., env: {"VITE_NODE_ENV":"production","VITE_APP_API":"https://gateway-c4.doublefs.com","BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}})】'), ["getters", "_actions"].forEach((pAe) => {
128974
128975
  Object.keys(store[pAe]).forEach((hAe) => {
128975
128976
  kh.store[pAe][hAe] = store[pAe][hAe];
128976
128977
  });