在router跳转的时候可以使用router.replaceUrl()方法使得目标页去替换并销毁当前页,也可以使用使用ArkUI的Navigation已支持支持HarmonyOS页面栈管理。参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-navigation-V5
在router跳转的时候可以使用router.replaceUrl()方法使得目标页去替换并销毁当前页,也可以使用使用ArkUI的Navigation已支持支持HarmonyOS页面栈管理。参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-navigation-V5