From 7742f23f6d10d8ec6e755ef38d660a88b4e2afe7 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 16 Aug 2021 16:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BF=BB=E8=AF=91=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E8=AF=BB=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- src/store/modules/common/getter.js | 2 +- src/store/modules/common/reducer.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 27b23c3..2f57415 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ const init = () => { registerPlaybackService(), ]).then(() => { let setting = store.getState().common.setting - toggleTranslation(setting.player.isShowTranslation) + toggleTranslation(setting.player.isShowLyricTranslation) if (setting.sync.enable) { connect().catch(err => { if (err.message == SYNC_CODE.unknownServiceAddress) { diff --git a/src/store/modules/common/getter.js b/src/store/modules/common/getter.js index 26152cf..68c3dbf 100644 --- a/src/store/modules/common/getter.js +++ b/src/store/modules/common/getter.js @@ -50,7 +50,7 @@ export const desktopLyricTextPosition = state => state.common.setting.desktopLyr export const timeoutExit = state => state.common.setting.player.timeoutExit 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 diff --git a/src/store/modules/common/reducer.js b/src/store/modules/common/reducer.js index bfec9da..dabc15b 100644 --- a/src/store/modules/common/reducer.js +++ b/src/store/modules/common/reducer.js @@ -278,14 +278,14 @@ const mutations = { }, } }, - [TYPES.setIsShowLyricTranslation](state, isShowTranslation) { + [TYPES.setIsShowLyricTranslation](state, isShowLyricTranslation) { return { ...state, setting: { ...state.setting, player: { ...state.setting.player, - isShowTranslation, + isShowLyricTranslation, }, }, }