赞
踩
1.修改config/index.js
open: 'http://127.0.0.1:8080',
host: '0.0.0.0', // 0.0.0.0设置手机端可以访问
port: 8080,
useLocalIp: true,
disableHostCheck: true,
2.ip访问依然报错
找到index.html中
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
这句话,注释掉就可以了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。