提交 67921e4b 编写于 作者: Shine-zwj's avatar Shine-zwj

新增应用状态事件注册

上级 eacc5eae
...@@ -227,7 +227,16 @@ import { Environment } from '@/environments/environment'; ...@@ -227,7 +227,16 @@ import { Environment } from '@/environments/environment';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public errorMessages: Array<any> = []; public errorMessages: Array<any> = [];
/**
* 应用状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public appStateEvent: Subscription | undefined;
/** /**
* 设置表单项错误提示信息 * 设置表单项错误提示信息
...@@ -1100,6 +1109,9 @@ import { Environment } from '@/environments/environment'; ...@@ -1100,6 +1109,9 @@ import { Environment } from '@/environments/environment';
if (this.dataChangEvent) { if (this.dataChangEvent) {
this.dataChangEvent.unsubscribe(); this.dataChangEvent.unsubscribe();
} }
if(this.appStateEvent){
this.appStateEvent.unsubscribe();
}
<#if destroyed_block??> <#if destroyed_block??>
${destroyed_block} ${destroyed_block}
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册