From 93fad2f637fd852b41e9deb4d0b73ad9413713ac Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 6 Aug 2023 22:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=8C=E6=88=90todo?= =?UTF-8?q?=E5=BC=95=E8=B5=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App2.vue | 19 ++++++++++--------- src/core/main/setting.ts | 6 ------ src/plugin/game/hero.ts | 4 ---- src/ui/statusBar.vue | 3 ++- 4 files changed, 12 insertions(+), 20 deletions(-) diff --git a/src/App2.vue b/src/App2.vue index 9a8133b..b47bcc1 100644 --- a/src/App2.vue +++ b/src/App2.vue @@ -3,9 +3,9 @@ - + > --> import { ref } from 'vue'; -import { - showStatusBar, - showStudiedSkill, - startOpened -} from './plugin/uiController'; +import { showStatusBar, startOpened } from './plugin/uiController'; import { chapterContent, chapterShowed } from './plugin/ui/chapter'; import { showMarkedEnemy } from './plugin/mark'; -import { showStudied, useFixed } from './plugin/settings'; import { showComplete, completeAchi } from './plugin/ui/achievement'; import MarkedEnemy from './ui/markedEnemy.vue'; import StatusBar from './ui/statusBar.vue'; import Chapter from './ui/chapter.vue'; -import Studied from './ui/studied.vue'; import Fixed from './ui/fixed.vue'; import Start from './ui/start.vue'; import CompleteAchievement from './ui/completeAchievement.vue'; +import { mainSetting } from './core/main/setting'; + +const useFixed = ref(true); + +mainSetting.on('valueChange', (key, n, o) => { + if (key === 'action.fixed') useFixed.value = n as boolean; +});