feat(assets): new assets loading system (currently only for images)
This commit is contained in:
@@ -38,7 +38,9 @@ export const useProjectsStore = defineStore("projects", {
|
||||
if (!projects.value) throw "Cannot load projects";
|
||||
this.projects = projects.value.map((project) => ({
|
||||
...project,
|
||||
id: project.id.split("/")[2]!,
|
||||
id: project.id
|
||||
.split("/")[2]!
|
||||
.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase()),
|
||||
}));
|
||||
|
||||
console.log(this.projects);
|
||||
|
||||
Reference in New Issue
Block a user