在使用如下的方式全局自定义的 dialog 的时候,使用 toast 失效;页面跳转也是失效,必须 dialog 关闭才行https://gitee.com/harmonyos-cases/cases/blob/master/CommonAppDevelopment/feature/customdialog/README.md
创建 subwindow,调用this.subWindow.setWindowFocusable(false)即可