闫增涛
2024-07-17 9d5789148e866f95f86d975011a9ef39d534c807
pages/home/home.js
@@ -596,10 +596,10 @@
    wx.scanCode({
      success(res) {
        console.log(res);
        if (res.errMsg == "scanCode:ok" && res.path) {
          console.log(res.path, 2)
        if (res.errMsg == "scanCode:ok" && res.path || res.result) {
          let path = res.path || res.result
          wx.redirectTo({
            url: '/' + res.path,
            url: '/' + path,
          })
        }
      }