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 @@