wujie icon indicating copy to clipboard operation
wujie copied to clipboard

fix: 在afterUnmount的回调函数中,使用 destroyApp 方法时,bus 属性为null ,调用$clear()会报错

Open fengxiaotx opened this issue 2 years ago • 0 comments

  • [x] 提交符合commit规范
  • [ ] npm run test通过
详细描述

在afterUnmount的回调函数中,使用 destroyApp 方法时,bus 属性为null ,调用$clear()会报错,我们的场景相对复杂一点,需要考虑保活和不保活两种场景,不保活时需要销毁原来的应用,否则无法再次打开,所以这里需要加一个判断进行兼容

  • 特性
  • 关联issue

fengxiaotx avatar Nov 23 '23 02:11 fengxiaotx