From 1f60c86c538cda423a82554fc15cb95d3ca6a1d8 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Wed, 15 Dec 2021 15:02:45 +0100 Subject: add Groups View and message fetcher --- src/services/CommandsService.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/services/CommandsService.js') diff --git a/src/services/CommandsService.js b/src/services/CommandsService.js index cc5bdf2..181d50e 100644 --- a/src/services/CommandsService.js +++ b/src/services/CommandsService.js @@ -3,9 +3,9 @@ import ChatService from "./ChatService" import store from "@/store/index.js" import router from '@/router/index.js' -function set_groups(data) { +function set_groups(searcher, data) { function group_command(group) { - console.log(group) + searcher.$emit("group_set", group) } let groups = {} @@ -21,11 +21,11 @@ function set_groups(data) { export default { groups() { return { - async send() { + async send(searcher) { const {data, status} = await ChatService.get_all_user_groups() if (status!==200) return {} - const groups = set_groups(data) + const groups = set_groups(searcher, data) return groups }, -- cgit v1.2.3