@ibiz-template/model-helper 0.1.19 → 0.1.20

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 CHANGED
@@ -15006,11 +15006,12 @@ var ModelUtil = class {
15006
15006
  if (this.permission === false) {
15007
15007
  stylePath = "/simple/PSSYSAPP.simple.json.css";
15008
15008
  }
15009
- style = await this.getModel(stylePath);
15009
+ style = await this.getStyleModel(stylePath);
15010
15010
  if (style) {
15011
15011
  return style;
15012
15012
  }
15013
15013
  } catch (error) {
15014
+ ibiz.log.error(error);
15014
15015
  }
15015
15016
  return null;
15016
15017
  }
@@ -15093,6 +15094,23 @@ var ModelUtil = class {
15093
15094
  }
15094
15095
  return {};
15095
15096
  }
15097
+ /**
15098
+ * 加载应用样式字符串
15099
+ *
15100
+ * @author chitanda
15101
+ * @date 2023-09-07 11:09:11
15102
+ * @param {string} modelPath
15103
+ * @return {*} {Promise<string>}
15104
+ */
15105
+ getStyleModel(modelPath) {
15106
+ let url;
15107
+ if (this.hub) {
15108
+ url = this.calcAppPath(modelPath);
15109
+ } else {
15110
+ url = this.calcSubAppPath(modelPath);
15111
+ }
15112
+ return this.get(url);
15113
+ }
15096
15114
  /**
15097
15115
  * 获取模型
15098
15116
  *