vue生成图片在微信,浏览器上都可长按保存,在抖音上不行,这是为什么



<template>
  <div class="index">
       
      <div id="captureId" class="capture"   v-show="firstFlag" style="border:1px solid red;width:200px;height:200px">
          <div>
              afjo
          </div>
        <h2>helloworld</h2>
      </div>
    <img :src="dataURL" alt="" v-show="!firstFlag">
  </div>
</template>
<script>
    import html2canvas from 'html2canvas';
    export default {
        data () {
            return {
                dataURL:'',
                firstFlag:true,
            };
        },
      
        mounted(){
            html2canvas(document.querySelector('#captureId')).then(canvas => {
                let imgUrl = canvas.toDataURL('image/png');
                this.dataURL = imgUrl;
                this.firstFlag = false;
            })
        },
        methods: {
 
        }
    }
</script>
<style lang='less' scoped>

有可能和抖音的长按功能冲突了,尝试添加一个按钮实现

怎么加。有案例吗?

touchstart 在屏幕上时触发
touchend 离开屏幕时触发

getTouchStart(){ clearTimeout(sufu); sufu=setTimeout(function(){ // 你要做的功能 },500); }, getTouchEnd(){ clearTimeout(sufu); }

如果不能覆盖抖音的长按,在touchstart.stop