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/...'
})
}
})