Rename getAllImages

This commit is contained in:
prototypa
2022-08-30 11:36:10 -04:00
parent 19b4a25012
commit 4859dcee87
2 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1,14 @@
const load = async function () {
let images = [];
try {
images = import.meta.glob("~/assets/images/*");
} catch (e) {}
return images;
};
let _images;
export const fetchLocalImages = async () => {
_images = _images || load();
return await _images;
};