修复无法移动歌曲的问题
parent
5f1e788a25
commit
442e633800
|
@ -12,7 +12,7 @@ electronDebug({
|
||||||
showDevTools: true,
|
showDevTools: true,
|
||||||
devToolsMode: 'undocked',
|
devToolsMode: 'undocked',
|
||||||
})
|
})
|
||||||
console.log(VUEJS3_DEVTOOLS)
|
|
||||||
// Install `vue-devtools`
|
// Install `vue-devtools`
|
||||||
electron.app.on('ready', () => {
|
electron.app.on('ready', () => {
|
||||||
installExtension(VUEJS3_DEVTOOLS)
|
installExtension(VUEJS3_DEVTOOLS)
|
||||||
|
|
|
@ -41,10 +41,10 @@ export default {
|
||||||
return []
|
return []
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
listName: {
|
// listName: {
|
||||||
type: String,
|
// type: String,
|
||||||
default: '',
|
// default: '',
|
||||||
},
|
// },
|
||||||
fromListId: {
|
fromListId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null,
|
default: null,
|
||||||
|
@ -96,7 +96,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleEditing(event) {
|
handleEditing(event) {
|
||||||
if (this.isEditing) return
|
if (this.isEditing) return
|
||||||
if (!this.newListName) this.newListName = this.listName
|
// if (!this.newListName) this.newListName = this.listName
|
||||||
this.isEditing = true
|
this.isEditing = true
|
||||||
this.$nextTick(() => event.currentTarget.querySelector('.' + this.$style.newListInput).focus())
|
this.$nextTick(() => event.currentTarget.querySelector('.' + this.$style.newListInput).focus())
|
||||||
},
|
},
|
||||||
|
|
|
@ -43,10 +43,10 @@ export default {
|
||||||
return []
|
return []
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
listName: {
|
// listName: {
|
||||||
type: String,
|
// type: String,
|
||||||
default: '',
|
// default: '',
|
||||||
},
|
// },
|
||||||
fromListId: {
|
fromListId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null,
|
default: null,
|
||||||
|
@ -98,7 +98,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleEditing(event) {
|
handleEditing(event) {
|
||||||
if (this.isEditing) return
|
if (this.isEditing) return
|
||||||
if (!this.newListName) this.newListName = this.listName
|
// if (!this.newListName) this.newListName = this.listName
|
||||||
this.isEditing = true
|
this.isEditing = true
|
||||||
this.$nextTick(() => event.currentTarget.querySelector('.' + this.$style.newListInput).focus())
|
this.$nextTick(() => event.currentTarget.querySelector('.' + this.$style.newListInput).focus())
|
||||||
},
|
},
|
||||||
|
|
|
@ -153,16 +153,16 @@ const mutations = {
|
||||||
const fromList = allList[fromId]
|
const fromList = allList[fromId]
|
||||||
const toList = allList[toId]
|
const toList = allList[toId]
|
||||||
if (!fromList || !toList) return
|
if (!fromList || !toList) return
|
||||||
fromList.list.splice(fromList.list.findIndex(s => s.songmid === musicInfo.songmid), 1)
|
fromList.splice(fromList.findIndex(s => s.songmid === musicInfo.songmid), 1)
|
||||||
let index = toList.list.findIndex(s => s.songmid === musicInfo.songmid)
|
let index = toList.findIndex(s => s.songmid === musicInfo.songmid)
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
switch (this.state.setting.list.addMusicLocationType) {
|
switch (this.state.setting.list.addMusicLocationType) {
|
||||||
case 'top':
|
case 'top':
|
||||||
toList.list.unshift(musicInfo)
|
toList.unshift(musicInfo)
|
||||||
break
|
break
|
||||||
case 'bottom':
|
case 'bottom':
|
||||||
default:
|
default:
|
||||||
toList.list.push(musicInfo)
|
toList.push(musicInfo)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,8 @@ div(:class="$style.list")
|
||||||
//- material-flow-btn(:show="isShowEditBtn && assertApiSupport(source)" :remove-btn="false" @btn-click="handleFlowBtnClick")
|
//- material-flow-btn(:show="isShowEditBtn && assertApiSupport(source)" :remove-btn="false" @btn-click="handleFlowBtnClick")
|
||||||
common-download-modal(v-model:show="isShowDownload" :musicInfo="selectedDownloadMusicInfo" teleport="#view")
|
common-download-modal(v-model:show="isShowDownload" :musicInfo="selectedDownloadMusicInfo" teleport="#view")
|
||||||
common-download-multiple-modal(v-model:show="isShowDownloadMultiple" :list="selectedList" @confirm="removeAllSelect" teleport="#view")
|
common-download-multiple-modal(v-model:show="isShowDownloadMultiple" :list="selectedList" @confirm="removeAllSelect" teleport="#view")
|
||||||
common-list-add-modal(v-model:show="isShowListAdd" :is-move="isMove" :musicInfo="selectedAddMusicInfo" :exclude-list-id="excludeListIds" teleport="#view")
|
common-list-add-modal(v-model:show="isShowListAdd" :is-move="isMove" :from-list-id="listId" :musicInfo="selectedAddMusicInfo" :exclude-list-id="excludeListIds" teleport="#view")
|
||||||
common-list-add-multiple-modal(v-model:show="isShowListAddMultiple" :is-move="isMoveMultiple" :musicList="selectedList" @confirm="removeAllSelect" :exclude-list-id="excludeListIds" teleport="#view")
|
common-list-add-multiple-modal(v-model:show="isShowListAddMultiple" :from-list-id="listId" :is-move="isMoveMultiple" :musicList="selectedList" @confirm="removeAllSelect" :exclude-list-id="excludeListIds" teleport="#view")
|
||||||
search-list(:list="list" @action="handleMusicSearchAction" :visible="isShowSearchBar")
|
search-list(:list="list" @action="handleMusicSearchAction" :visible="isShowSearchBar")
|
||||||
music-sort-modal(v-model:show="isShowMusicSortModal" :music-info="selectedSortMusicInfo" :selected-num="selectedNum" @confirm="sortMusic")
|
music-sort-modal(v-model:show="isShowMusicSortModal" :music-info="selectedSortMusicInfo" :selected-num="selectedNum" @confirm="sortMusic")
|
||||||
base-menu(:menus="menus" :location="menuLocation" item-name="name" :isShow="isShowItemMenu" @menu-click="handleMenuClick")
|
base-menu(:menus="menus" :location="menuLocation" item-name="name" :isShow="isShowItemMenu" @menu-click="handleMenuClick")
|
||||||
|
|
Loading…
Reference in New Issue