Files
boursecu_landing/src/store/configStore.ts
T

17 lines
361 B
TypeScript
Raw Normal View History

2026-08-01 10:11:28 +03:30
import {ref} from 'vue'
import {defineStore} from 'pinia'
export const useConfigStore = defineStore('config', () => {
const config = ref(window.__APP_CONFIG__?.user)
async function getConfigData() {
config.value = window.__APP_CONFIG__?.user
console.log(config.value)
}
return {
config,
getConfigData
}
})