npm install js-web-screen-shot --save
import ScreenShort from "js-web-screen-shot";
<button @click="screenhotFnc">点我截图</button>
//最后生成一个数组,base格式,可循环渲染到页面上面
screenhotFnc() {new ScreenShort({//api可参考github官网hiddenScrollBar: {state: true,fillState: false,},enableWebRtc: false, //是否显示选项框level: 9999, //层级级别completeCallback: this.callback,closeCallback: this.closeFnc,});},callback(base64data) {var image = new Image();image.src = base64data;image.onload = () => {var canvas = this.convertImageToCanvas(image);var url &