How does vue-cli3.0 request json files locally

in which folder should I put the json file to get it? Put it under assets. I tried the browser and didn"t seem to get it

.

clipboard.png

clipboard.png

clipboard.png

Dec.23,2021

the public on the first floor can be packaged by public or the complete copy template in this directory can be packaged.
Let me be more specific about it

.

request can be added with local service domain name (ip)
file directory: public/index.json
request: http://localhost:8080/index.json


under public


anywhere. How do you use it? Put down the code

Menu