2018年5月31日

axios

摘要: main.js配置全局使用: 打开config文件夹中的index.js,找到proxyTable: {},修改成你所需接口的域名。 文件中使用 阅读全文

posted @ 2018-05-31 15:41 王子乔 阅读(166) 评论(0) 推荐(0)

vue项目中,localhost可以访问,IP无法访问的问题

摘要: 用http://localhost:8082/可以访问,但是换到ip就访问不了,127.0.0.1、0.0.0.0访问也可以,就ip不行 根源 在config里面的index.js里面的module.exports下面的dev下面的host:'localhost' 改为 host:'0.0.0.0' 阅读全文

posted @ 2018-05-31 11:11 王子乔 阅读(2072) 评论(0) 推荐(0)

导航