Migrate the Footer component (as a layout one)

This commit is contained in:
Bubka
2023-09-22 17:21:18 +02:00
parent a57baa9de9
commit 74d886a840
5 changed files with 101 additions and 13 deletions

18
resources/js_vue3/stores/appSettings.js vendored Normal file
View 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 }
},
},
})