This commit is contained in:
syuilo
2020-09-06 13:04:44 +09:00
parent d4085085b8
commit cc35f2c186
18 changed files with 38 additions and 44 deletions

View File

@@ -1,6 +1,9 @@
import { defineAsyncComponent } from 'vue';
import Stream from '@/scripts/stream';
import { store } from './store';
export const stream = new Stream();
export function api(endpoint: string, data: Record<string, any> = {}, token?: string | null | undefined) {
return store.dispatch('api', { endpoint, data, token });
}