mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-12 10:10:59 +01:00
19 lines
347 B
JavaScript
19 lines
347 B
JavaScript
|
import { defineStore } from 'pinia'
|
||
|
// import { useApi } from '@/api/useAPI.js'
|
||
|
|
||
|
// const api = useApi()
|
||
|
|
||
|
export const useAppSettingsStore = defineStore({
|
||
|
id: 'settings',
|
||
|
|
||
|
state: () => {
|
||
|
return { ...window.appSettings }
|
||
|
},
|
||
|
|
||
|
actions: {
|
||
|
updateSetting(setting) {
|
||
|
this.settings = { ...this.state.settings, ...setting }
|
||
|
},
|
||
|
},
|
||
|
})
|