From 1dcece85636e8b078bec2b2049d6cd2ff9096494 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 6 Mar 2024 16:52:10 +0100 Subject: [PATCH] Use Factory for Phrasen --- public/js/plugin/Phrasen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/plugin/Phrasen.js b/public/js/plugin/Phrasen.js index 9365fa5f3..c0baf8629 100644 --- a/public/js/plugin/Phrasen.js +++ b/public/js/plugin/Phrasen.js @@ -25,8 +25,8 @@ const phrasen = { if (Array.isArray(category)) return Promise.all(category.map(cat => this.loadCategory(cat))); if (!loadingModules[category]) - loadingModules[category] = this.config.globalProperties.$fhcApi - .get('/api/frontend/v1/phrasen/loadModule/' + category) + loadingModules[category] = this.config.globalProperties + .$fhcApi.factory.phrasen.loadCategory(category) .then(res => res?.data ? extractCategory(res.data, category) : {}) .then(res => { categories[category] = res;