From e64bedf2a4216b949b8b661e5b780999c81f8bef Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Mon, 15 May 2023 02:14:02 +0800 Subject: [PATCH] switch loli button --- .../setting-panel/KUNGalgameSettingPanel.vue | 12 +++++++----- .../setting-panel/components/Loli.vue | 6 ++++++ .../setting-panel/components/SwitchButton.vue | 19 +++++++++++++++++-- src/config/setting-panel.ts | 2 +- src/store/modules/topic.ts | 1 - 5 files changed, 31 insertions(+), 9 deletions(-) diff --git a/src/components/setting-panel/KUNGalgameSettingPanel.vue b/src/components/setting-panel/KUNGalgameSettingPanel.vue index 7c9b8a0c..dcc459ff 100644 --- a/src/components/setting-panel/KUNGalgameSettingPanel.vue +++ b/src/components/setting-panel/KUNGalgameSettingPanel.vue @@ -11,7 +11,6 @@ import SwitchButton from './components/SwitchButton.vue' // 导入设置面板 store import { useSettingsPanelStore } from '@/store/modules/settings' import { storeToRefs } from 'pinia' -import Drug from './components/Drug.vue' // 使用设置面板的 store const settingsStore = useSettingsPanelStore() @@ -21,7 +20,10 @@ const handleClose = () => { } // 用户点击固定看板娘 -const handleClick = () => {} +const handleClick = () => { + showFixedLoli.value = false + console.log(showFixedLoli.value) +}