Redirection of WeChat Mini Programs

onPageNotFound

In the APP() function of registering the applet

Function: When the page to be opened does not exist, the callback function will be executed with page information, and you can specify to jump to a new page


APP({
    onPageNotFound(res){
        wx.redirectTo({
            url: 'pages/...'
        })
    }
})

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325059238&siteId=291194637