@ibiz-template/runtime 0.6.0-alpha.1 → 0.6.0-alpha.2
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/index.esm.js +18 -2
- package/dist/index.system.min.js +1 -1
- package/out/controller/notification/notice.controller.js +2 -2
- package/out/global/global-util/global-util.d.ts +8 -0
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +18 -0
- package/package.json +2 -2
- package/src/controller/notification/notice.controller.ts +3 -3
- package/src/global/global-util/global-util.ts +19 -0
package/dist/index.esm.js
CHANGED
|
@@ -33787,12 +33787,12 @@ var NoticeController = class {
|
|
|
33787
33787
|
this.internalMessage = new InternalMessageController();
|
|
33788
33788
|
}
|
|
33789
33789
|
async init() {
|
|
33790
|
-
await this.internalMessage.init();
|
|
33791
|
-
await this.asyncAction.init();
|
|
33792
33790
|
this.internalMessage.evt.on("unreadCountChange", () => {
|
|
33793
33791
|
this.total = this.internalMessage.unreadCount;
|
|
33794
33792
|
this.evt.emit("totalChange", this.total);
|
|
33795
33793
|
});
|
|
33794
|
+
await this.internalMessage.init();
|
|
33795
|
+
await this.asyncAction.init();
|
|
33796
33796
|
}
|
|
33797
33797
|
};
|
|
33798
33798
|
|
|
@@ -34844,6 +34844,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
34844
34844
|
};
|
|
34845
34845
|
|
|
34846
34846
|
// src/global/global-util/global-util.ts
|
|
34847
|
+
var sourceTitle = document.title;
|
|
34847
34848
|
var GlobalUtil = class {
|
|
34848
34849
|
constructor() {
|
|
34849
34850
|
/**
|
|
@@ -34945,6 +34946,21 @@ var GlobalUtil = class {
|
|
|
34945
34946
|
}
|
|
34946
34947
|
}, 300);
|
|
34947
34948
|
}
|
|
34949
|
+
/**
|
|
34950
|
+
* 设置浏览器标签页标题
|
|
34951
|
+
*
|
|
34952
|
+
* @author chitanda
|
|
34953
|
+
* @date 2024-02-05 09:02:08
|
|
34954
|
+
* @param {string} title
|
|
34955
|
+
*/
|
|
34956
|
+
setBrowserTitle(title) {
|
|
34957
|
+
const app = ibiz.hub.getApp();
|
|
34958
|
+
if (title) {
|
|
34959
|
+
document.title = "".concat(app.model.title || ibiz.env.AppTitle || sourceTitle, " - ").concat(title);
|
|
34960
|
+
} else {
|
|
34961
|
+
document.title = app.model.title || ibiz.env.AppTitle || sourceTitle;
|
|
34962
|
+
}
|
|
34963
|
+
}
|
|
34948
34964
|
};
|
|
34949
34965
|
|
|
34950
34966
|
// src/logic-scheduler/executor/logic-executor.ts
|