vue-cli——vue-resource登录注册实例 https://segmentfault.com/a/11900000093296191 参考二: https://www.jianshu.com/p/c51ffebeceed 流程图