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; +});