Why does the vue-cli project use mobile phones to access local IP, pages?

change host to 0.0.0.0, mobile phone can access, but only on iPhone access is the white screen, PC and Android are normal. Notice that when I use IOS9.3 and IOS11, the screen is white. Try a lot of methods on the Internet are ineffective!

Mar.23,2021

What about the

port?
it is recommended to change your host to your local ip, windos+r and enter the command line ipconfig to get your local ip

clipboard.png

host port 8080

clipboard.png

Please adopt

if you are satisfied.

turns out to be swiper's problem
https://codeshelper.com/a/11.

Menu