let importFn = (icon) = > {
import icon from "@/assets/monitor-data/" + icon + ".png";
}
import icon1 from "@ / assets/monitor-data/icon1.png";
import icon2 from "@ / assets/monitor-data/icon2.png";
import icon3 from "@ / assets/monitor-data/icon3.png";
import icon4 from "@ / assets/monitor-data/icon4.png";
vue project, originally intended to write a function, but the import line also reported an error. I don"t know why, how do we solve this repeated introduction-sharp-sharp-sharp problem description
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)