This is the vue page
This is the project structure
result
The configuration added by index.js under config
The modified path in the axios configuration file
Everything is wrong no matter how I set the path. I just can’t find this json file. I hope someone can give me some advice. Thank you
Put the home.json file in the /static/ directory, and then
Just fill in the domain name for target in proxy. Come and thank me
It seems that axios requests http, so the json file I created myself cannot be accessed? I don’t understand a bit
Modify the local dev-server.js... just parse it into static resources...
For example, put your json in the /example folder and modify express as follows~