Fix image in meta and other details

This commit is contained in:
prototypa
2022-08-25 00:46:15 -04:00
parent b9b8feac44
commit 0a7b84b816
13 changed files with 67 additions and 49 deletions

View File

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