鸿蒙开发关闭整个app方法 其实一步步router.back()是没有完全关闭app的 直接上代码: let context = getContext(this) as common.UIAbilityContext; context.terminateSelf()