dfs-page-config 0.5.60 → 0.5.62
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/dist/dfs-page-config.js +14 -13
- package/dist/dfs-page-config.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -124904,21 +124904,23 @@ 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
|
-
|
|
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]
|
|
124913
|
-
|
|
124914
|
-
|
|
124913
|
+
const oAe = kh || window.location.host.split(".")[0];
|
|
124914
|
+
(function(pAe) {
|
|
124915
|
+
var hAe = pAe.sdk_url, AAe = pAe.name, vAe = window, CAe = document, wAe = "script", EAe = null, _Ae = null;
|
|
124916
|
+
if (typeof vAe.sensorsDataAnalytic201505 < "u")
|
|
124915
124917
|
return !1;
|
|
124916
|
-
|
|
124918
|
+
vAe.sensorsDataAnalytic201505 = AAe, vAe[AAe] = vAe[AAe] || function(OAe) {
|
|
124917
124919
|
return function() {
|
|
124918
|
-
(AAe
|
|
124920
|
+
(vAe[AAe]._q = vAe[AAe]._q || []).push([OAe, arguments]);
|
|
124919
124921
|
};
|
|
124920
124922
|
};
|
|
124921
|
-
for (var
|
|
124923
|
+
for (var xAe = [
|
|
124922
124924
|
"track",
|
|
124923
124925
|
"quick",
|
|
124924
124926
|
"register",
|
|
@@ -124938,9 +124940,9 @@ const Row = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$6
|
|
|
124938
124940
|
"trackLink",
|
|
124939
124941
|
"clearAllRegister",
|
|
124940
124942
|
"getAppStatus"
|
|
124941
|
-
],
|
|
124942
|
-
AAe
|
|
124943
|
-
AAe
|
|
124943
|
+
], DAe = 0; DAe < xAe.length; DAe++)
|
|
124944
|
+
vAe[AAe][xAe[DAe]] = vAe[AAe].call(null, xAe[DAe]);
|
|
124945
|
+
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
124946
|
})({
|
|
124945
124947
|
sdk_url: "https://cdn.jsdelivr.net/npm/sa-sdk-javascript@1.15.25/sensorsdata.min.js",
|
|
124946
124948
|
name: "sensors",
|
|
@@ -124948,8 +124950,7 @@ const Row = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$6
|
|
|
124948
124950
|
is_track_single_page: !0,
|
|
124949
124951
|
use_client_time: !0,
|
|
124950
124952
|
send_type: "beacon"
|
|
124951
|
-
})
|
|
124952
|
-
sensors.registerPage({
|
|
124953
|
+
}), sensors.registerPage({
|
|
124953
124954
|
application_name_test: oAe,
|
|
124954
124955
|
dfsUserId: tAe.name
|
|
124955
124956
|
}), sensors.quick("autoTrack");
|
|
@@ -128970,7 +128971,7 @@ const analyzeResourceLoadTime = () => {
|
|
|
128970
128971
|
);
|
|
128971
128972
|
}, index = (Ff, kh) => {
|
|
128972
128973
|
var oAe, sAe;
|
|
128973
|
-
kh.env || console.error(
|
|
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
|
});
|