在config/index.js,把host:'localhost'改为host:'0.0.0.0',重新编译即可 ip 0.0.0.0 是什么意思 IPV4中,0.0.0.0地址被用于表示一个无效的,未知的或者不可用的目标。