[Vuejs]-How to add correctly an image in vuejs

4👍

Assuming the image path you provided is correct, use the require function instead.

products: [
  {
    id: 1,
    title: "Google Pixel - Black",
    price: 10,
    company: "GOOGLE",
    status : "TopSell",
    img: require("../../bg.jpeg")
  }
],

Leave a comment