tnx-shared 5.3.105 → 5.3.106

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.
@@ -31901,15 +31901,21 @@
31901
31901
  };
31902
31902
  MenuService.prototype.renderMenuByAppCode = function (appCode) {
31903
31903
  return __awaiter(this, void 0, void 0, function () {
31904
- var root, environment, menuUrl;
31904
+ var root, domainMenus, environment, menuUrl;
31905
31905
  var _this = this;
31906
31906
  return __generator(this, function (_a) {
31907
31907
  root = this._applicationContext.getRootContext();
31908
31908
  this._menuItems = [];
31909
+ domainMenus = '';
31909
31910
  environment = this._moduleConfigService.getConfig().environment;
31910
- menuUrl = "assets/menus/" + appCode.toLocaleLowerCase() + ".json";
31911
+ // if ( environment.clientDomain.appDomain.indexOf('localhost') == -1) {
31912
+ // Thêm link menu bên ngoài
31913
+ if (environment.clientDomain.menusDomain) {
31914
+ domainMenus = environment.clientDomain.menusDomain + "/";
31915
+ }
31916
+ menuUrl = domainMenus + "assets/menus/" + appCode.toLocaleLowerCase() + ".json";
31911
31917
  if (environment.scopename && root.data.currentAppMetadata.renderMenuByScopeName) {
31912
- menuUrl = "assets/menus/" + environment.scopename + "/" + appCode.toLocaleLowerCase() + ".json";
31918
+ menuUrl = domainMenus + "assets/menus/" + environment.scopename + "/" + appCode.toLocaleLowerCase() + ".json";
31913
31919
  }
31914
31920
  fetch(menuUrl).then(function (rs) { return __awaiter(_this, void 0, void 0, function () {
31915
31921
  var menu, _a, _b;