新增我的列表右键菜单复制歌曲名选项

This commit is contained in:
lyswhut
2020-05-23 22:44:19 +08:00
parent 5ce6aafc07
commit cfef06a15b
6 changed files with 15 additions and 1 deletions
+10
View File
@@ -114,6 +114,7 @@ export default {
isShowItemMenu: false,
itemMenuControl: {
play: true,
copyName: true,
addTo: true,
moveTo: true,
download: true,
@@ -204,6 +205,11 @@ export default {
action: 'download',
disabled: !this.listMenu.itemMenuControl.download,
},
{
name: this.$t('view.list.list_copy_name'),
action: 'copyName',
disabled: !this.listMenu.itemMenuControl.copyName,
},
{
name: this.$t('view.list.list_add_to'),
action: 'addTo',
@@ -706,6 +712,10 @@ export default {
case 'play':
this.testPlay(index)
break
case 'copyName':
minfo = this.list[index]
clipboardWriteText(this.setting.download.fileName.replace('歌名', minfo.name).replace('歌手', minfo.singer))
break
case 'addTo':
if (this.selectdListDetailData.length) {
this.$nextTick(() => {