I need to import the following JSON from a different component because it includes require
and Math
. I am having trouble saving it in JSON file format.
let test = [
{
name:"A",
imgSrc: require('@/assets/img/A.png'),
range: Math.pow(10, 6),
isShow: true
},
{
name:"B",
imgSrc: require('@/assets/img/B.png'),
range: Math.pow(10, 2),
isShow: false
}
];