修复正在播放“稍后播放”的歌曲时,对“稍后播放”前播放的列表进行添加、删除操作会导致切歌的问题

pull/495/head
lyswhut 2021-04-16 16:58:20 +08:00
parent fe76d103f0
commit 47d0a4a343
3 changed files with 5 additions and 1 deletions

View File

@ -16,3 +16,4 @@
- 修复备份与恢复功能在恢复数据时某些设置不立即生效的问题
- 修正设置页“搜索设置”部分内容的缩进显示问题
- 修复正在播放“稍后播放”的歌曲时,对“稍后播放”前播放的列表进行添加、删除操作会导致切歌的问题

View File

@ -279,6 +279,7 @@ export default {
this.setLyric()
},
async list(n, o) {
if (this.playInfo.isTempPlay) return
if (n === o && this.musicInfo.songmid) {
let index = this.listId == 'download'
? n.findIndex(s => s.musicInfo.songmid === this.musicInfo.songmid)

View File

@ -23,7 +23,7 @@ import { rendererSend, NAMES } from '../common/ipc'
sync(store, router)
Vue.config.productionTip = false
Vue.config.devtools = process.env.NODE_ENV === 'development'
getSetting().then(({ setting, version }) => {
// Set language automatically
@ -56,5 +56,7 @@ getSetting().then(({ setting, version }) => {
el: '#root',
render: h => h(App),
})
// window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app.constructor
})