Forwarding page when configuring the trigger index.js
wx.navigateTo({
url: '../warn/warn',
})
In fact error page can not find the trigger
The reason is that the page no path not defined in app.json inside, resulting in less access path.
Increase the allocation to the app.json in: