diff --git a/src/components/Play.vue b/src/components/Play.vue index 0070f77..80e8531 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -13,7 +13,7 @@
- + 换源 @@ -89,7 +89,7 @@ - + 快捷键指南 @@ -127,7 +127,7 @@
- + 频道列表 @@ -137,7 +137,7 @@ - + 换源 @@ -158,7 +158,7 @@ - + 快捷键指南 @@ -904,7 +904,7 @@ export default { const info = { video: this.video, list: this.right.list, - m3u8List: VIDEO_DETAIL_CACHE[this.video.key + '@' + this.video.info.id] || [], + playlist: VIDEO_DETAIL_CACHE[this.video.key + '@' + this.video.info.id] || [], playerError: this.xg.error || '', playerState: this.xg.readyState || '', networkState: this.xg.networkState || '' @@ -981,9 +981,17 @@ export default { this.isTop = this.appState.windowIsOnTop }, closeListEvent () { - this.right.show = false - this.right.type = '' - this.state.showChannelList = false + const lastRightType = this.right.type + const lastChannelListState = this.state.showChannelList + setTimeout(() => { + if (lastRightType === this.right.type) { + this.right.show = false + this.right.type = '' + } + if (lastChannelListState === this.state.showChannelList) { + this.state.showChannelList = false + } + }, 50) }, exportM3u8 () { const m3u8Arr = [] @@ -1547,11 +1555,16 @@ export default { }) }, showShortcutEvent () { - this.right.show = !this.right.show - shortcut.all().then(res => { - this.right.type = 'shortcut' - this.right.shortcut = res - }) + if (this.right.type === 'shortcut') { + this.right.show = false + this.right.type = '' + } else { + this.right.show = true + shortcut.all().then(res => { + this.right.type = 'shortcut' + this.right.shortcut = res + }) + } } }, created () {