|
|
@ -31,7 +31,7 @@ function save_avatar(){
|
|
|
|
const previewId = this.props.previewId
|
|
|
|
const previewId = this.props.previewId
|
|
|
|
var img_lg = document.getElementById(previewId || 'img-preview');
|
|
|
|
var img_lg = document.getElementById(previewId || 'img-preview');
|
|
|
|
// 截图小的显示框内的内容
|
|
|
|
// 截图小的显示框内的内容
|
|
|
|
html2canvas(img_lg).then(function(canvas) {
|
|
|
|
window.html2canvas(img_lg).then(function(canvas) {
|
|
|
|
// for test
|
|
|
|
// for test
|
|
|
|
// document.getElementById('canvasWrap').appendChild(canvas);
|
|
|
|
// document.getElementById('canvasWrap').appendChild(canvas);
|
|
|
|
|
|
|
|
|
|
|
|