1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 14:06:05 +02:00
This commit is contained in:
syuilo
2020-07-24 19:35:19 +09:00
parent 0bf4c5cb29
commit a02bd7061a
9 changed files with 73 additions and 64 deletions

View File

@@ -40,6 +40,10 @@ export default defineComponent({
},
methods: {
api(endpoint: string, data: { [x: string]: any } = {}, token?) {
return this.$store.dispatch('api', { endpoint, data, token });
},
dialog(opts) {
this.$store.commit('showDialog', opts);
}