getImage should ask for and return an image using its full relative file path
getImage(folderName, imageName) { return require(`@/assets/${folderName}/${imageName}`) }
As far as I know, Vite cannot handle the '@' alias for this specific task, so make sure to set your paths accordingly
getImage(folderName, imageName) { return new URL(`../assets/${folderName}/${imageName}`, import.meta.url).href; }