Commit 494c1ed0 authored by yimj's avatar yimj

提交代码

parent 957acf44
<template>
<div class="video-player">
<video
ref="videoDom"
src="https://resources.laihua.com/2020-7-27/547adf9b-73b0-4b14-bed6-6ee278a1b2b2.mp4"
></video>
<video ref="videoDom" src="https://resources.laihua.com/2020-7-27/547adf9b-73b0-4b14-bed6-6ee278a1b2b2.mp4"></video>
</div>
</template>
<script>
......
......@@ -5,10 +5,7 @@ import { register } from 'register-service-worker'
if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, {
ready() {
console.log(
'App is being served from cache by a service worker.\n' +
'For more details, visit https://goo.gl/AFskqB'
)
console.log('App is being served from cache by a service worker.\n' + 'For more details, visit https://goo.gl/AFskqB')
},
registered() {
console.log('Service worker has been registered.')
......
......@@ -13,7 +13,7 @@
<div class="wait" v-show="item.state == 0">
<div>输出格式</div>
<div class="selectionFormat">mp4</div>
<div class="delete" @click="clearAllTasks(item)">删除</div>
<div class="delete" @click="clearTask(item)">删除</div>
</div>
<div class="active" v-show="item.state == 1">
<div class="progress">
......@@ -66,7 +66,7 @@ export default {
item.state = 0
},
clearTask(item) {
let index = this.taskList(item)
let index = this.taskList.indexOf(item)
if (index > -1) {
this.taskList.splice(index, 1)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment