@flexem/fc-gui 3.0.0-alpha.37 → 3.0.0-alpha.38

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/CHANGELOG.md CHANGED
@@ -154,4 +154,10 @@
154
154
  ## 3.0.0-alpha.37(2022-09-09)
155
155
  ### Web端
156
156
  #### Features
157
- 1. FLEXCLOUD-2217: 设备仪表盘 & 运营仪表盘:组态页面,增加【主页】按钮,【刷新】按钮为当前页面刷新
157
+ 1. FLEXCLOUD-2217: 设备仪表盘 & 运营仪表盘:组态页面,增加【主页】按钮,【刷新】按钮为当前页面刷新
158
+
159
+ ## 3.0.0-alpha.38(2022-09-09)
160
+ ### Web端
161
+ #### Features
162
+ 1. FLEXCLOUD-2217: 设备仪表盘 & 运营仪表盘:组态页面,增加【主页】按钮,【刷新】按钮为当前页面刷新
163
+ -- 解决最初进主页事不能刷新的问题
@@ -41251,14 +41251,12 @@ let gui_component_GuiComponent = class GuiComponent {
41251
41251
  this.globalSettings.displayMode = this.isMobileMode ? settings["a" /* DisplayMode */].Mobile : settings["a" /* DisplayMode */].Web;
41252
41252
  }
41253
41253
  refreshCurrentPage() {
41254
- const viewIndex = this.host.currentViewIndex;
41255
- if (null != viewIndex) {
41256
- const toggleView = this.viewService.toggleViews.get(this.el);
41257
- if (!toggleView) {
41258
- return;
41259
- }
41260
- toggleView(viewIndex, this.hostContainerId, this.el).subscribe();
41254
+ const viewIndex = this.host.currentViewIndex || 0;
41255
+ const toggleView = this.viewService.toggleViews.get(this.el);
41256
+ if (!toggleView) {
41257
+ return;
41261
41258
  }
41259
+ toggleView(viewIndex, this.hostContainerId, this.el).subscribe();
41262
41260
  }
41263
41261
  };
41264
41262
  __decorate([