tnx-shared 5.1.587 → 5.1.588
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/bundles/tnx-shared.umd.js +8 -3
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/menu.service.js +8 -3
- package/fesm2015/tnx-shared.js +7 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/menu.service.d.ts.map +1 -1
|
@@ -31870,15 +31870,20 @@
|
|
|
31870
31870
|
};
|
|
31871
31871
|
MenuService.prototype.renderMenuByAppCode = function (appCode) {
|
|
31872
31872
|
return __awaiter(this, void 0, void 0, function () {
|
|
31873
|
-
var root, environment, menuUrl;
|
|
31873
|
+
var root, domainMenus, environment, menuUrl;
|
|
31874
31874
|
var _this = this;
|
|
31875
31875
|
return __generator(this, function (_a) {
|
|
31876
31876
|
root = this._applicationContext.getRootContext();
|
|
31877
|
+
domainMenus = '';
|
|
31877
31878
|
this._menuItems = [];
|
|
31878
31879
|
environment = this._moduleConfigService.getConfig().environment;
|
|
31879
|
-
|
|
31880
|
+
// Thêm link menu bên ngoài
|
|
31881
|
+
if (environment.clientDomain.menusDomain) {
|
|
31882
|
+
domainMenus = environment.clientDomain.menusDomain + "/";
|
|
31883
|
+
}
|
|
31884
|
+
menuUrl = domainMenus + "assets/menus/" + appCode.toLocaleLowerCase() + ".json";
|
|
31880
31885
|
if (environment.scopename && root.data.currentAppMetadata.renderMenuByScopeName) {
|
|
31881
|
-
menuUrl = "assets/menus/" + environment.scopename + "/" + appCode.toLocaleLowerCase() + ".json";
|
|
31886
|
+
menuUrl = domainMenus + "assets/menus/" + environment.scopename + "/" + appCode.toLocaleLowerCase() + ".json";
|
|
31882
31887
|
}
|
|
31883
31888
|
fetch(menuUrl).then(function (rs) { return __awaiter(_this, void 0, void 0, function () {
|
|
31884
31889
|
var menu, _a, _b;
|