标签:网址 cal 生成 环境 index 简单 etc sts bsp
本人是个强迫症;看不惯localhost;
首先打开你的vue-cli项目的build\dev-server.js
然后把var uri = ‘http:/localhost:‘ + port 里的localhost 改成你的网址; port是端口,想改成80的到config\index.js里改;dev是开发环境,build是生成环境;
最后改你的hosts文件 C:\Windows\System32\drivers\etc\hosts 最下面加行:127.0.0.1 z.cn(z.cn是你的网址);
嗯;就这么简单!
标签:网址 cal 生成 环境 index 简单 etc sts bsp
原文地址:http://www.cnblogs.com/lqzweb/p/7101668.html