使用npm dev run 启动项目后无法使用IP访问。只能用localhost:8080方式访问。 修改项目中config/index.js 将dev中host改为'0.0.0.0'即可。 image.png