Nouvelle interface

This commit is contained in:
2023-06-19 17:38:49 +02:00
parent 97c2175e7b
commit ebbd1de1eb
10 changed files with 162 additions and 28 deletions

17
src/stores/global.js Normal file
View File

@@ -0,0 +1,17 @@
import {defineStore} from 'pinia'
import Api from "@/services/Api.js";
export const useGlobalStore = defineStore('global', {
state: () => ({
gulliver: null
}),
getters: {
numc: (state) => state.gulliver.numc,
url : (state) => state.gulliver.url,
},
actions: {
async registerSession(){
this.gulliver = await Api.call('AdminController', 'getSession')
}
},
})