Urgent request: Mini Program cannot jump to the page

  onLoad: function () {
    // 
    wx.getSetting({
      success: function (res) {
        if (res.authSetting["scope.userInfo"]) {
          wx.getUserInfo({
            success: function (res) {
              console.log("")
              //
            }
          })
        } else {      
            wx.navigateTo({
              url: "../authorization/authorization"
            })
          console.log("")
          //
        }
      }
    })
  }
  
  


is there an error if I didn't jump? Did you walk to the else branch? Is the path written correctly? Is app.json configured with the appropriate path?


url writes the path configured in app.json


url:'. / authorization/authorization' is wrong here


still need to study the document!

Menu