History.push () can jump in Wechat developer tools, but not in Wechat.

problem description

history.push ("/ test") can be redirected in Wechat developer tools, but not in Wechat on mobile. Is it a question of compatibility?

the environmental background of the problems and what methods you have tried

the web website in Wechat"s official account needs to be redirected in js. Now I have written a history to realize the route jump

.

related codes

history.js
import createHistory from "history/createBrowserHistory";
export default createHistory();

A.js
import history from "./history"
getEvent = () => {
    post("url",params).then(data => {
        //post
        if(){
            history.push("/test");
        }
    })
}

what result do you expect? What is the error message actually seen?

Please give us some advice, great gods

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-1bda396-311db.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-1bda396-311db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?