edu/app/src/stores/user.ts

13 lines
262 B
TypeScript
Raw Normal View History

2022-09-07 12:58:01 +00:00
import { getClient } from '@/utils/client'
import { defineStore } from 'pinia'
export const useAppStore = defineStore({
id: 'appStore',
// convert to a function
state: () => ({
client: getClient()
}),
getters: {},
actions: {}
})