Others under the LAN access the locally running Vue project

background

Only vue project, no background.
Other tutorials on the Internet have modified the index.js file in the config directory. The current local vue project does not have a config directory.

turn off firewall

Go to "Firewall and Network Protection" and turn off the following three
insert image description here

Start the vue project

First of all, the following are my vue and scaffolding versions
insert image description here
Start the vue project
(I saw in other tutorials, many people said that they need to modify the host of the index.js/vue.config.js file, but I didn’t modify it, just run it directly)
insert image description here
network is the ip address of the current wireless LAN (you can also view it in ipconfig).
Others in the LAN can access it through the following ip address and port

Guess you like

Origin blog.csdn.net/weixin_52268321/article/details/131176764