From f105bdb36a0e995ab371f3b2ab48af05e7179d81 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 4 Dec 2024 11:09:37 +0100 Subject: [PATCH] revert FhcApi.js to current master --- public/js/plugin/FhcApi.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/public/js/plugin/FhcApi.js b/public/js/plugin/FhcApi.js index 8c35da1df..0c51de53b 100644 --- a/public/js/plugin/FhcApi.js +++ b/public/js/plugin/FhcApi.js @@ -136,7 +136,7 @@ export default { return Promise.reject(error); }); - app.config.globalProperties.$fhcApi = Vue.reactive({ + app.config.globalProperties.$fhcApi = { getUri(url) { return fhcApiAxios.getUri({url}); }, @@ -289,7 +289,7 @@ export default { $fhcAlert.alertDefault('error', error.message, message); } } - }); + }; class FhcApiFactoryWrapper { constructor(factorypart, root) { @@ -301,11 +301,6 @@ export default { return (root || this).$fhcApi; } }) - - this.bindKeys(factorypart) - } - - bindKeys(factorypart, root) { Object.keys(factorypart).forEach(key => { Object.defineProperty(this, key, { get() {