From da8e67d4e58ffefa0007080b75fdd633031afaa8 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 19 Jun 2022 14:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=84=E4=BA=8E=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9A=84=E6=BA=90=E6=97=B6=EF=BC=8C=E6=AD=8C?= =?UTF-8?q?=E5=8D=95=E3=80=81=E6=8E=92=E8=A1=8C=E6=A6=9C=E7=9A=84=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E4=B8=8B=E8=BD=BD=E8=8F=9C=E5=8D=95=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 25 +------------------ .../components/material/OnlineList/useMenu.js | 18 ++++++------- 2 files changed, 10 insertions(+), 33 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 2052cae0..68093683 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,26 +1,3 @@ -### 新增 - -- 新增设置-以全屏模式启动设置 -- 新增设置-桌面歌词设置-鼠标移入歌词区域时降低歌词透明度(#883),默认关闭,此设置不支持linux,注:此功能存在兼容性问题,若鼠标移出后无法恢复到正常透明度,可尝试再移入移出即可恢复 - -### 优化 - -- 添加歌曲到“我的列表”时,若按住`ctrl`键(Mac对应`Command`),则不会自动关闭添加窗口,这对想要将同一首(一批)歌曲添加到多个列表时会很有用 -- 支持mg源逐字歌词的播放,感谢 @mozbugbox 提供的帮助 -- 添加歌曲列表更新操作的二次确认 -- 添加导入文件错误时的指引提示 - ### 修复 -- 修复若配置了`http_proxy`环境变量时,会意外使用此代理配置的问题 -- 修复多选后切换列表后不会清空多选内容的问题 -- 修复设置快捷键时的处理逻辑问题 -- 修复在新建歌单输入框、歌单内歌曲搜索输入框会意外触发设置的全局快捷键的问题(#879) - -### 文档 - -桌面版文档已迁移到: - -### 其他 - -- 更新 Electron 到 v17.4.7 +- 修复处于不支持的源时,歌单、排行榜的右键下载菜单没有禁用的问题 diff --git a/src/renderer/components/material/OnlineList/useMenu.js b/src/renderer/components/material/OnlineList/useMenu.js index 61ead38a..5d5c6fb8 100644 --- a/src/renderer/components/material/OnlineList/useMenu.js +++ b/src/renderer/components/material/OnlineList/useMenu.js @@ -1,4 +1,4 @@ -import { computed, ref, useI18n, useCssModule, nextTick } from '@renderer/utils/vueTools' +import { computed, ref, reactive, useI18n, useCssModule, nextTick } from '@renderer/utils/vueTools' import musicSdk from '@renderer/utils/music' export default ({ @@ -13,7 +13,7 @@ export default ({ handleShowMusicAddModal, handleOpenMusicDetail, }) => { - const itemMenuControl = ref({ + const itemMenuControl = reactive({ play: true, addTo: true, playLater: true, @@ -31,38 +31,38 @@ export default ({ { name: t('list__play'), action: 'play', - disabled: !itemMenuControl.value.play, + disabled: !itemMenuControl.play, }, { name: t('list__download'), action: 'download', - disabled: !itemMenuControl.value.download, + disabled: !itemMenuControl.download, }, { name: t('list__play_later'), action: 'playLater', - disabled: !itemMenuControl.value.playLater, + disabled: !itemMenuControl.playLater, }, { name: t('list__search'), action: 'search', - disabled: !itemMenuControl.value.search, + disabled: !itemMenuControl.search, }, { name: t('list__add_to'), action: 'addTo', - disabled: !itemMenuControl.value.addTo, + disabled: !itemMenuControl.addTo, }, { name: t('list__source_detail'), action: 'sourceDetail', - disabled: !itemMenuControl.value.sourceDetail, + disabled: !itemMenuControl.sourceDetail, }, ] }) const showMenu = (event, musicInfo) => { - itemMenuControl.value.sourceDetail = !!musicSdk[musicInfo.source].getMusicDetailPageUrl + itemMenuControl.sourceDetail = !!musicSdk[musicInfo.source].getMusicDetailPageUrl // this.listMenu.itemMenuControl.play = // this.listMenu.itemMenuControl.playLater = itemMenuControl.download = assertApiSupport(musicInfo.source)