13 lines
262 B
TypeScript
13 lines
262 B
TypeScript
|
|
import { getClient } from '@/utils/client'
|
||
|
|
import { defineStore } from 'pinia'
|
||
|
|
|
||
|
|
export const useAppStore = defineStore({
|
||
|
|
id: 'appStore',
|
||
|
|
// convert to a function
|
||
|
|
state: () => ({
|
||
|
|
client: getClient()
|
||
|
|
}),
|
||
|
|
getters: {},
|
||
|
|
actions: {}
|
||
|
|
})
|