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