医网签页面
这个提交包含在:
父节点
badb58ed8b
当前提交
bd7ec970f3
@ -119,7 +119,7 @@ export class ToolsHelper {
|
||||
* 双击退出
|
||||
* @param msg
|
||||
*/
|
||||
static doubleAndExit() {
|
||||
static doubleAndExit(event?:()=>void) {
|
||||
const cTime = new Date().getTime()
|
||||
console.log('=====>', cTime)
|
||||
console.log('=====>', cTime - ToolsHelper.oTime)
|
||||
@ -127,8 +127,12 @@ export class ToolsHelper {
|
||||
ToolsHelper.oTime = cTime
|
||||
ToolsHelper.showMessage('双击退出')
|
||||
} else {
|
||||
// getContext().getApplicationContext().killAllProcesses();
|
||||
(getContext() as common.UIAbilityContext).terminateSelf()
|
||||
if (event) {
|
||||
event()
|
||||
}else{
|
||||
(getContext() as common.UIAbilityContext).terminateSelf()
|
||||
// getContext().getApplicationContext().killAllProcesses();
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户