@cc-component/cc-core 1.2.3 → 1.2.5

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.
@@ -899,12 +899,12 @@ export class MainModule {
899
899
  // 移除窗口记录
900
900
  private removeWindowRecord(className: string) {
901
901
  const config = MainModule.Ins.openedWindowsConfig.get(className);
902
+ const list_layer = MainModule.Ins.openWindowLayer.get(config.layer)
903
+ list_layer.pop();//移除最后一个
902
904
  if (config.layer === LayerType.LayerUI) {
903
- const list_layer = MainModule.Ins.openWindowLayer.get(config.layer)
904
- list_layer.pop();//移除最后一个
905
905
  this.ShowLayerUI(config, true)
906
- Logger.debug('LayerType.LayerUI 移除窗口记录:', className, list_layer);
907
906
  }
907
+ Logger.debug('LayerType.LayerUI 移除窗口记录:', className, list_layer);
908
908
 
909
909
  this.openedWindows.delete(className);
910
910
  this.openedWindowsConfig.delete(className);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",