提交 b8779cb7 编写于 作者: WodahsOrez's avatar WodahsOrez

add: 支持设备的返回功能

上级 2ac7b062
...@@ -171,6 +171,7 @@ ...@@ -171,6 +171,7 @@
_this.loadModel(); _this.loadModel();
} }
this.thirdPartyInit(); this.thirdPartyInit();
this.initCapacitorService();
<#if mounted_block??>${mounted_block}</#if> <#if mounted_block??>${mounted_block}</#if>
<#list view.getAllPSControls() as ctrl> <#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType() == 'TOOLBAR' && ctrl.getToolbarStyle?? && ctrl.getToolbarStyle() == 'MOBBOTTOMMENU'> <#if ctrl.getControlType() == 'TOOLBAR' && ctrl.getToolbarStyle?? && ctrl.getToolbarStyle() == 'MOBBOTTOMMENU'>
...@@ -196,6 +197,17 @@ ...@@ -196,6 +197,17 @@
} }
} }
/**
* 初始化CapacitorService 服务
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public initCapacitorService() {
if (!this.isChildView) {
AppCapacitorService.getInstance().viewInit(this, !(this.viewDefaultUsage === 'includedView'));
}
}
/** /**
* 销毁视图回调 * 销毁视图回调
* *
......
...@@ -34,6 +34,7 @@ import ${srfclassname('${curAppEntity.getCodeName()}')}UIService from '@/ui-serv ...@@ -34,6 +34,7 @@ import ${srfclassname('${curAppEntity.getCodeName()}')}UIService from '@/ui-serv
import ${srfclassname('${appde.getCodeName()}')}UIService from '@/ui-service/${srffilepath2(appde.getCodeName())}/${srffilepath2(appde.getCodeName())}-ui-action'; import ${srfclassname('${appde.getCodeName()}')}UIService from '@/ui-service/${srffilepath2(appde.getCodeName())}/${srffilepath2(appde.getCodeName())}-ui-action';
</#if> </#if>
import { AnimationService } from '@ibiz-core/service/animation-service' import { AnimationService } from '@ibiz-core/service/animation-service'
import { AppCapacitorService } from '@/utils/app-capacitor-service/app-capacitor-service';
<#if import_block??> <#if import_block??>
${import_block} ${import_block}
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册