修复添加歌曲弹窗默认列表名字显示问题
parent
8d108509c9
commit
e52fff4d0e
|
@ -1,3 +1,4 @@
|
|||
### 修复
|
||||
|
||||
- 修复在低版本Linux amd64系统上无法启动的问题(glibc版本要求过高导致的,采用内置预编译二进制文件的方式解决)
|
||||
- 修复添加歌曲弹窗默认列表名字显示问题
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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: {
|
||||
|
@ -63,6 +64,7 @@ export default {
|
|||
emits: ['update:show'],
|
||||
setup(props) {
|
||||
const keyModDown = useKeyDown('mod')
|
||||
const t = useI18n()
|
||||
const lists = ref([])
|
||||
|
||||
const currentMusicInfo = ref({})
|
||||
|
@ -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)
|
||||
|
|
|
@ -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: {
|
||||
|
@ -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))
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue