闫增涛
2025-03-28 abbd7d18ea431ee8b6b8e634abf3e8ccb1fbb1b3
packageBookService/pages/components/webView/index.js
@@ -24,7 +24,6 @@
   */
  onLoad(options) {
    console.log(options)
    if (options && options.link) {
      this.setData({
        src: decodeURIComponent(options.link),
@@ -43,17 +42,12 @@
      }
    }
    const token = wx.getStorageSync(app.config.tokenKey)
    if (!token) {
      loginInfo(app, (data) => {
        if (data) {
          this.getProgress(options)
        } else {
          this.getProgress(options)
        }
      })
    } else {
    if (token) {
      this.getProgress(options)
    } else {
      this.setWebViewSrc(options);
    }
  },
  onLoadWeb(e) {