Commit 494c1ed0 authored by yimj's avatar yimj

提交代码

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