<template>
  <div class="p_test">
    <p>test</p>
    <button @click="screenShot">截屏</button>
  </div>
</template>
<script>

export default {
  name: "test",
  data() {
    return {};
  },
  methods: {
    async screenShot() {
      console.log(await this.capture({ target: document.body }));
    }
  },
  mounted() {
    // console.log(`jt is`,capture.generate);
  }
};
</script>
<style lang="scss"></style>
