IP address of the machine can not be opened (Vue project)

1, first find index.js build the project file in the config file using scaffolding vue
2, modify dev inside the host property values: change the host: '0.0.0.0'
3, and finally in the local area network, using its own ip connection, and do not forget to restart the project

4. Find the version of vue-cli will host the host name is defined as localhost, resulting in local IP can not access the service.

 

Guess you like

Origin www.cnblogs.com/huancheng/p/11325803.html