@das-fed/utils 6.4.0-dev.40 → 6.4.0-dev.41

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.
@@ -8,4 +8,5 @@ export * from '@das-fed/utils/common-tools/setHtmlMinWH';
8
8
  export * from '@das-fed/utils/common-tools/queue-promise';
9
9
  export * from '@das-fed/utils/common-tools/platform-tools';
10
10
  export * from '@das-fed/utils/common-tools/update-fav-icon';
11
+ export * from '@das-fed/utils/common-tools/update-browser-title';
11
12
  export * from '@das-fed/utils/common-tools/extract-file-name';
@@ -8,4 +8,5 @@ export * from "@das-fed/utils/common-tools/setHtmlMinWH";
8
8
  export * from "@das-fed/utils/common-tools/queue-promise";
9
9
  export * from "@das-fed/utils/common-tools/platform-tools";
10
10
  export * from "@das-fed/utils/common-tools/update-fav-icon";
11
+ export * from "@das-fed/utils/common-tools/update-browser-title";
11
12
  export * from "@das-fed/utils/common-tools/extract-file-name";
@@ -0,0 +1 @@
1
+ export declare const setBrowseTitle: (defaultTitle?: string) => any;
@@ -0,0 +1,12 @@
1
+ import { systemConfiguration as l } from "@das-fed/utils/api-services/modules";
2
+ const n = async (o = "AIoT智能物联网管控平台") => {
3
+ let t = localStorage.getItem("browser-title") ?? "";
4
+ if (!t) {
5
+ const i = l.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), [s, e] = await i().run();
6
+ e != null && e.browserTitle && (t = e.browserTitle);
7
+ }
8
+ document.title = t || o;
9
+ };
10
+ export {
11
+ n as setBrowseTitle
12
+ };