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.
@@ -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
- menuUrl = "assets/menus/" + appCode.toLocaleLowerCase() + ".json";
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;