mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复翻译设置的读取问题
This commit is contained in:
parent
d3caf5eb76
commit
7742f23f6d
2
index.js
2
index.js
@ -42,7 +42,7 @@ const init = () => {
|
|||||||
registerPlaybackService(),
|
registerPlaybackService(),
|
||||||
]).then(() => {
|
]).then(() => {
|
||||||
let setting = store.getState().common.setting
|
let setting = store.getState().common.setting
|
||||||
toggleTranslation(setting.player.isShowTranslation)
|
toggleTranslation(setting.player.isShowLyricTranslation)
|
||||||
if (setting.sync.enable) {
|
if (setting.sync.enable) {
|
||||||
connect().catch(err => {
|
connect().catch(err => {
|
||||||
if (err.message == SYNC_CODE.unknownServiceAddress) {
|
if (err.message == SYNC_CODE.unknownServiceAddress) {
|
||||||
|
@ -50,7 +50,7 @@ export const desktopLyricTextPosition = state => state.common.setting.desktopLyr
|
|||||||
|
|
||||||
export const timeoutExit = state => state.common.setting.player.timeoutExit
|
export const timeoutExit = state => state.common.setting.player.timeoutExit
|
||||||
export const timeoutExitPlayed = state => state.common.setting.player.timeoutExitPlayed
|
export const timeoutExitPlayed = state => state.common.setting.player.timeoutExitPlayed
|
||||||
export const isShowLyricTranslation = state => state.common.setting.player.isShowTranslation
|
export const isShowLyricTranslation = state => state.common.setting.player.isShowLyricTranslation
|
||||||
|
|
||||||
export const activeApiSourceId = state => state.common.setting.apiSource
|
export const activeApiSourceId = state => state.common.setting.apiSource
|
||||||
|
|
||||||
|
@ -278,14 +278,14 @@ const mutations = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[TYPES.setIsShowLyricTranslation](state, isShowTranslation) {
|
[TYPES.setIsShowLyricTranslation](state, isShowLyricTranslation) {
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
setting: {
|
setting: {
|
||||||
...state.setting,
|
...state.setting,
|
||||||
player: {
|
player: {
|
||||||
...state.setting.player,
|
...state.setting.player,
|
||||||
isShowTranslation,
|
isShowLyricTranslation,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user