Alisa/web/src/store.ts
2024-07-09 11:19:21 +02:00

8 lines
210 B
TypeScript

import { reactive } from 'vue';
export const store = reactive<{token: string | null, setToken: (token: string | null) => void}>({
token: null,
setToken: (token: string | null) => store.token = token
});