kun-galgame-vue/src/store/modules/settings.ts

13 lines
326 B
TypeScript
Raw Normal View History

2023-05-12 18:23:22 +00:00
// KUNGalgame 设置面板的 store
import { ref } from 'vue'
import { defineStore } from 'pinia'
import kungalgameSettings from '@/config/setting-panel'
export const useSettingsPanelStore = defineStore('settings', () => {
2023-05-14 07:16:28 +00:00
const showSettings = ref<boolean>(kungalgameSettings.settings)
2023-05-12 18:23:22 +00:00
return {
showSettings,
}
})