@cc-component/cc-core 1.4.8 → 1.4.9

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.
@@ -333,8 +333,10 @@ export class App {
333
333
  * param:参数
334
334
  */
335
335
  const closeEvent: { eventName: string, param?: any } = view.closeEvent?.()
336
- const close: Function = view[closeEvent.eventName]
337
- if (close) { close.call(view, closeEvent.param) }
336
+ if (closeEvent) {
337
+ const close: Function = view[closeEvent.eventName]
338
+ if (close) { close.call(view, closeEvent.param) }
339
+ }
338
340
  if (view && view.node && view.node.isValid) view.node.destroy(); // 关闭窗口
339
341
  }
340
342
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",