Vue-cli can't load the picture module, so I can't find it. What's going on?

  1. alias has been configured with assets
  2. I wonder if it is because require is introduced at run time in computed that
  3. cannot be found.
  4. I want to use the second way to write it so that I don"t want to load useless pictures, or you can tell me how to get the pictures that require needs at run time

you can write it in this way

clipboard.png


clipboard.png


then you can use what can be used, don't worry about it.

Menu