RuoYi
2025-06-19 ad988d54bbc8b4e65a49808e233c96c5952d0f2f
ruoyi-ui/src/layout/components/InnerLink/index.vue
@@ -24,24 +24,24 @@
    return {
      loading: false,
      height: document.documentElement.clientHeight - 94.5 + "px;"
    };
    }
  },
  mounted() {
    var _this = this;
    const iframeId = ("#" + this.iframeId).replace(/\//g, "\\/");
    const iframe = document.querySelector(iframeId);
    var _this = this
    const iframeId = ("#" + this.iframeId).replace(/\//g, "\\/")
    const iframe = document.querySelector(iframeId)
    // iframe页面loading控制
    if (iframe.attachEvent) {
      this.loading = true;
      this.loading = true
      iframe.attachEvent("onload", function () {
        _this.loading = false;
      });
        _this.loading = false
      })
    } else {
      this.loading = true;
      this.loading = true
      iframe.onload = function () {
        _this.loading = false;
      };
        _this.loading = false
      }
    }
  }
};
}
</script>