revert FhcApi.js to current master

This commit is contained in:
Harald Bamberger
2024-12-04 11:09:37 +01:00
parent 1b445005af
commit f105bdb36a
+2 -7
View File
@@ -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() {