Charles map local
When we execute Charles as above
And can’t get the Data in the list.json file
Solution:
1. We want to compareIP in the localhost domain namewithIP address in my computerIs it consistent
2.localhost: Click to query -> own localhost address
3. Look at the IP address of our computer again
. 4. The problem is here, because the IP addresses pointed to by the two are completelyDifferent!
So I can't get the correctlist.json file
5. Finally put the map local in Host dataChange to the IP address of your computer
6. Then I will give a hint at the end:
that is when the page is loaded on the web page, localhost:3000
it won't work!
Because your localhost and IP address are completely different
7. So we have to modify this URL and write it as你的IP地址:3000