From c39f6fd2b4a2b53a042164b70903c7c1603c7928 Mon Sep 17 00:00:00 2001 From: lavi <62757958+lavi27@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:38:04 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20api=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EB=A5=BC=20=EC=9C=84=ED=95=9C=20=EC=A3=BC=EC=84=9D=20=ED=95=B4?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/dashboard/index.vue | 9 ++++---- pages/dashboard/invite.vue | 42 ++++++++++++++++++++++---------------- pages/dashboard/verify.vue | 21 +++++++++++-------- 3 files changed, 40 insertions(+), 32 deletions(-) diff --git a/pages/dashboard/index.vue b/pages/dashboard/index.vue index e5d211a..9ad8aea 100644 --- a/pages/dashboard/index.vue +++ b/pages/dashboard/index.vue @@ -167,8 +167,7 @@ definePageMeta({ const initChartEvent = useEventBus('initInviteURLUsageChart') const route = useRoute() const API = useAPI() -// const { alertsData, loadPush, checkPush, onPushCheck } = useSocketAlert() -const alertsData = useState() +const { alertsData, loadPush, checkPush, onPushCheck } = useSocketAlert() const { loadingSuccess } = useLoadingState() @@ -200,12 +199,12 @@ onMounted(async () => { try { summaryData.value = await API.get.summary() - // loadPush(Number(route.query.id)) + loadPush(Number(route.query.id)) - // onPushCheck(resizeAlerts) + onPushCheck(resizeAlerts) alertInterval.value = setInterval(() => { - // checkPush(Number(route.query.id)) + checkPush(Number(route.query.id)) }, 5000) await wait(100) diff --git a/pages/dashboard/invite.vue b/pages/dashboard/invite.vue index f23bd07..6fe8671 100644 --- a/pages/dashboard/invite.vue +++ b/pages/dashboard/invite.vue @@ -226,6 +226,8 @@