• 问:新版vue-cli输入本地ip不能访问,只能用localhost才可以访问?
    答:修改config/index.js配置,将host: 'localhost',改为host: '0.0.0.0',就可以了。用ip、127.0.0.1、localhost均行。