From 1d46b851700a73cccb1c4d0b52b6657c3290b788 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 17 Oct 2021 17:06:28 +0200 Subject: [PATCH] fix: loading labels after login --- src/store/modules/labels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/labels.js b/src/store/modules/labels.js index 92b9fc14..5326483b 100644 --- a/src/store/modules/labels.js +++ b/src/store/modules/labels.js @@ -4,8 +4,8 @@ import { success } from '@/message' import {i18n} from '@/i18n' import {getLabelsByIds, filterLabelsByQuery} from '@/helpers/labels' -const labelService = new LabelService() async function getAllLabels(page = 1) { + const labelService = new LabelService() const labels = await labelService.getAll({}, {}, page) if (page < labelService.totalPages) { const nextLabels = await getAllLabels(page + 1)