Does WeChat Mini Programs share always show that the page does not exist?

  //
  onShareAppMessage: function() {
    var that = this
    var onlykey = that.data.onlykey
    return {
      title: that.data.message.Contents,
      path: "/page/show/pages/detail/detail?onlykey=" + onlykey,
      success: (res) => {
        console.log(res)
      },
      fail: (res) => {
        console.log(res)
      }
    }
  },

the directory structure is as follows:


Dec.17,2021

what the hell path is, take a look at what is registered in your app.json, and then take a look at the page path shown below Wechat's development tool. Writing


inside the page sharing according to that format can be opened, but the home page is not. What's going on?

Menu