- 问:新版vue-cli输入本地ip不能访问,只能用localhost才可以访问?
答:修改config/index.js配置,将host: 'localhost',
改为host: '0.0.0.0',
就可以了。用ip、127.0.0.1、localhost均行。
新版vue-cli输入本地ip不能访问,只能用localhost才可以访问?
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Liveness probe failed: Could not connect to Redis at localhost:6379
背景今天在部署一个平台容器版的时候redis集群始终无法正常启动,报以下错误:Liveness probe failed: Could not connect to Redis at localhost:6379解决过程排除dns解析问题因为报localhost无法访问首先修改成127.0.0.1排除是dns解析的问题,改完后仍然报错,只不过localhost改成127.0.0.1了。
k8s cni0 flannel.1 Count not connet to docker -
vue-ui
使用vue-ui新建一个vue项目
vue-ui -
Vue UI库
1. element ui(饿了么UI) 桌面端 2. iView 3. Mint UI 移动端 桌面端UI库和移动端UI库有什么区别呢? ...
UI Vue element-ui 移动端 技术