IOS微信浏览器,返回捕捉不到pageshow

IOS微信上:
A->B然后back(),是可以捕捉到pageshow
A->B更改B里面文字然后back(),也是可以捕捉到pageshow
但是
A->B更改B里面的一张图片然后back(),就捕捉不到pageshow

有哪位大神能帮忙看下这是什么情况吗?怎么修改?

这是pageshow的监听方式:
window.addEventListener("pageshow", function (event) {
alert("pageshow");
});

https://blog.csdn.net/Jack_zengzhen/article/details/79087229

[[[UIApplication sharedApplication].windows lastObject] addSubview:_hud];
GXDLog(@"self.hud -- %@",_hud);
GXDLog(@"self.window.rootViewController -- %@",self.window.rootViewController);
GXDLog(@"_hud.superview -- %@",_hud.superview);

GXDLog(@"url -- %@",url);
GXDLog(@"url.url.absoluteString -- %@",url.absoluteString);
GXDLog(@"url.scheme -- %@",url.scheme);
GXDLog(@"url.path -- %@",url.path);
GXDLog(@"url.pathComponents -- %@",url.pathComponents);
GXDLog(@"url.query -- %@",url.query);
GXDLog(@"url.fragment -- %@",url.fragment);

NSMutableDictionary *paramsDict = [NSMutableDictionary dictionary];
NSURLComponents *components = [NSURLComponents componentsWithString:url.absoluteString];
for (NSURLQueryItem *item in components.queryItems) {

    if (item.name.length > 0 && item.value.length > 0) {
        [paramsDict setObject:item.value forKey:item.name];
    }
}
GXDLog(@"components -- %@",components.queryItems);
GXDLog(@"paramsDict -- %@",paramsDict);

NSString *serverUrl = [[InitModel sharedInitModel] getServerUrlWithSuffix:nil];
if (!serverUrl || serverUrl.length == 0) {

    [self getServerUrl];

} else {

    [self loginWithServerUrl:serverUrl paramsDict:paramsDict];
}