diff --git a/src/components/Detail.vue b/src/components/Detail.vue index 50b65ea..f3fd389 100644 --- a/src/components/Detail.vue +++ b/src/components/Detail.vue @@ -128,19 +128,6 @@ export default { close () { this.detail.show = false }, - m3u8Parse (e) { - const dd = e.dl.dd - const type = Object.prototype.toString.call(dd) - if (type === '[object Array]') { - for (const i of dd) { - if (i._flag.indexOf('m3u8') >= 0) { - this.m3u8List = i._t.split('#') - } - } - } else { - this.m3u8List = dd._t.split('#') - } - }, async playEvent (n) { if (!this.playOnline) { console.log(this.detail) @@ -278,7 +265,7 @@ export default { if (res) { this.info = res this.$set(this.info, 'rate', '') - this.m3u8Parse(res) + this.m3u8List = res.m3u8List this.getDoubanRate() this.loading = false } diff --git a/src/components/History.vue b/src/components/History.vue index 379b4e3..0416d18 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -23,20 +23,24 @@ + width="180" + label="集数进度"> + width="150" + label="时间进度">