Browse Source

去this

master
z_yu 2 years ago
parent
commit
708249fb5b
  1. 4
      src/views/video/index.vue

4
src/views/video/index.vue

@ -1,9 +1,9 @@
<template>
<div class="video-box">
<video v-if="this.src.endsWith('.mp4')" width="100%" height="100%" controls loop autoplay muted :poster="poster">
<video v-if="src.endsWith('.mp4')" width="100%" height="100%" controls loop autoplay muted :poster="poster">
<source :src="src" type="video/mp4">
</video>
<img v-if="!this.src.endsWith('.mp4')" width="100%" height="100%" :src="src" />
<img v-if="!src.endsWith('.mp4')" width="100%" height="100%" :src="src">
</div>
</template>

Loading…
Cancel
Save