diff --git a/CHANGELOG.md b/CHANGELOG.md index cbe309e75741b8adb4fbb6b6f432992545b6f448..147a4b747598edfba832b1431f3c9070aa572c30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +6.1.2 (22/02/2024) +------------------ + +- [FIX] Les composants peuvent être placés dans des sous-sous répertoires de front + 6.1.1 (21/02/2024) ------------------ @@ -13,4 +18,4 @@ CHANGELOG - Passage à PHP8.2 6.0.0 (09/06/2023) ------------------- +------------------ \ No newline at end of file diff --git a/js/Client/main.js b/js/Client/main.js index 1d3a482055192f93fa9a3472bddd8cb7cd426770..b3e9597450930c3316b6948a64ab5b00630f7a2d 100644 --- a/js/Client/main.js +++ b/js/Client/main.js @@ -13,7 +13,7 @@ function init(vues, options) for (const path in vues) { let compPath = path.slice(2, -4); - let compName = compPath.replace('/', ''); + let compName = compPath.replaceAll('/', ''); components[compName] = vues[path].default; } @@ -34,7 +34,7 @@ function init(vues, options) if (undefined !== options.autoloads){ for (const alias in options.autoloads) { - let compName = options.autoloads[alias].replace('/', ''); + let compName = options.autoloads[alias].replaceAll('/', ''); app.component(alias, components[compName]); } }