mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-13 23:38:32 +02:00
Migrate the Footer component (as a layout one)
This commit is contained in:
18
resources/js_vue3/stores/appSettings.js
vendored
Normal file
18
resources/js_vue3/stores/appSettings.js
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
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 }
|
||||
},
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user