vue组件中监听document加载完成
created() { const that = this; that.timer = setInterval(() => { if (document.readyState === 'complete') { that.toImage(); window.clearInterval(that.timer); } }, 1000); },