"Wechat official account developer Yuansheng return button problem

developed in Wechat official account, listening returned event page B is listening page
C page without adding listening event
page flow AME-> BMY-> C
when you click on Wechat"s official account to return, Clam-> flashed BMIT-> A will jump twice
this is Wechat"s official account listening code:

function backHistory(backUrl) {  
    let state = {  
        title: "title"  
    };  
    window.history.pushState(state, state.title, window.location.href);  
    window.addEventListener("popstate", function(e) {  //
        if(backUrl == undefined) {
            history.go(-1);
        } else {
            if(backUrl == "home") {
                if(wx != undefined) {
                    wx.closeWindow();
                }
            } else {
                location.href=backUrl;  //
            }
        }
    }, false); 
}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4795a-43f9e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4795a-43f9e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?