From 4e36b2f6046b0f0e627012f3527799d679daf328 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Wed, 3 Jul 2019 15:48:41 +0800 Subject: [PATCH] window.html2canvas --- public/react/src/common/components/Cropper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/common/components/Cropper.js b/public/react/src/common/components/Cropper.js index 35c2cdd99..c9514e52a 100644 --- a/public/react/src/common/components/Cropper.js +++ b/public/react/src/common/components/Cropper.js @@ -31,7 +31,7 @@ function save_avatar(){ const previewId = this.props.previewId var img_lg = document.getElementById(previewId || 'img-preview'); // 截图小的显示框内的内容 - html2canvas(img_lg).then(function(canvas) { + window.html2canvas(img_lg).then(function(canvas) { // for test // document.getElementById('canvasWrap').appendChild(canvas);