先finish 然后再跳转解决了我的问题
JpushUtils.initJpushPermissions(activity);
activity.finish();
if (isFromWeb) {
Intent resultIntent = new Intent();
resultIntent.putExtra("status", "login_success");
activity.setResult(RESULT_OK, resultIntent);
} else {
ARouter.getInstance()
.build(RouterConfig.ROUTER_WEBMAIN)
.navigation();
ToastUtils.showLong("登录成功");
}