Skip to content

Commit

Permalink
修复添加歌曲弹窗默认列表名字显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed May 1, 2023
1 parent 8d10850 commit e52fff4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions publish/changeLog.md
@@ -1,3 +1,4 @@
### 修复

- 修复在低版本Linux amd64系统上无法启动的问题(glibc版本要求过高导致的,采用内置预编译二进制文件的方式解决)
- 修复添加歌曲弹窗默认列表名字显示问题
4 changes: 2 additions & 2 deletions src/lang/en-us.json
Expand Up @@ -78,8 +78,8 @@
"history_search": "History Searches",
"import": "Import",
"leaderboard": "Charts",
"list__name_default": "Temp List",
"list__name_love": "My Love",
"list__name_default": "Default",
"list__name_love": "Love",
"list__add_to": "Add to ...",
"list__collect": "Collect",
"list__copy_name": "Copy name",
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/components/common/ListAddModal.vue
Expand Up @@ -22,6 +22,7 @@ import { watch, ref, onBeforeUnmount } from '@common/utils/vueTools'
import { defaultList, loveList, userLists } from '@renderer/store/list/state'
import { addListMusics, moveListMusics, createUserList, getMusicExistListIds } from '@renderer/store/list/action'
import useKeyDown from '@renderer/utils/compositions/useKeyDown'
import { useI18n } from '@/lang'
export default {
props: {
Expand Down Expand Up @@ -63,6 +64,7 @@ export default {
emits: ['update:show'],
setup(props) {
const keyModDown = useKeyDown('mod')
const t = useI18n()
const lists = ref([])
const currentMusicInfo = ref({})
Expand All @@ -81,8 +83,8 @@ export default {
const getList = () => {
lists.value = [
defaultList,
loveList,
{ ...defaultList, name: t(defaultList.name) },
{ ...loveList, name: t(loveList.name) },
...userLists,
].filter(l => !props.excludeListId.includes(l.id)).map(l => ({ ...l, isExist: false }))
checkMusicExist(currentMusicInfo.value)
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/components/common/ListAddMultipleModal.vue
Expand Up @@ -21,6 +21,7 @@ import { computed } from '@common/utils/vueTools'
import { defaultList, loveList, userLists } from '@renderer/store/list/state'
import { addListMusics, moveListMusics, createUserList } from '@renderer/store/list/action'
import useKeyDown from '@renderer/utils/compositions/useKeyDown'
import { useI18n } from '@/lang'
export default {
props: {
Expand Down Expand Up @@ -64,11 +65,12 @@ export default {
emits: ['update:show', 'confirm'],
setup(props) {
const keyModDown = useKeyDown('mod')
const t = useI18n()
const lists = computed(() => {
return [
defaultList,
loveList,
{ ...defaultList, name: t(defaultList.name) },
{ ...loveList, name: t(loveList.name) },
...userLists,
].filter(l => !props.excludeListId.includes(l.id))
})
Expand Down

0 comments on commit e52fff4

Please sign in to comment.