微信小程序点击按钮不跳转

微信小程序点击按钮不跳转,报警告:worker.js?libName=WAAccelerateWorker.js:1 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details


<button class="left" style="width:100%;height:10vh" bindtap="add" >添加button>view>
// index.js
  add:function(event){
    wx.navigateTo({
      url: '/pages/add/add.wxml',
    })
  },



<text bindtap="backList">返回text>

//add.js
  backList(){
    wx.navigateBack();
  },

跳转的页面不需要加文件后缀

  wx.navigateTo({
        url: '/pages/add/add',
    })
不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^