18 lines
247 B
TypeScript
18 lines
247 B
TypeScript
import { defineStore } from 'pinia'
|
|
|
|
interface App {
|
|
route: string
|
|
}
|
|
|
|
const useAppStore = defineStore('app', {
|
|
state: (): App => {
|
|
return {
|
|
route: ''
|
|
}
|
|
},
|
|
actions: {
|
|
|
|
}
|
|
})
|
|
|
|
export default useAppStore |