diff --git a/README.zh-CN.md b/README.zh-CN.md index e2f0db07..e0ec09bb 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -30,7 +30,7 @@ ## 简介 -[vue-element-admin](http://panjiachen.github.io/vue-element-admin) 是一个后台前端解决方案,它基于 [vue](https://github.com/vuejs/vue) 和 [element-ui](https://github.com/ElemeFE/element)实现。它使用了最新的前端技术栈,内置了 i18 国际化解决方案,动态路由,权限验证,提炼了典型的业务模型,提供了丰富的功能组件,它可以帮助你快速搭建企业级中后台产品原型。相信不管你的需求是什么,本项目都能帮助到你。 +[vue-element-admin](http://panjiachen.github.io/vue-element-admin) 是一个后台前端解决方案,它基于 [vue](https://github.com/vuejs/vue) 和 [element-ui](https://github.com/ElemeFE/element)实现。它使用了最新的前端技术栈,内置了 i18n 国际化解决方案,动态路由,权限验证,提炼了典型的业务模型,提供了丰富的功能组件,它可以帮助你快速搭建企业级中后台产品原型。相信不管你的需求是什么,本项目都能帮助到你。 - [在线预览](http://panjiachen.github.io/vue-element-admin) diff --git a/mock/index.js b/mock/index.js index 4fa6c3d3..15e07afa 100644 --- a/mock/index.js +++ b/mock/index.js @@ -11,6 +11,7 @@ export function mockXHR() { Mock.XHR.prototype.send = function() { if (this.custom.xhr) { this.custom.xhr.withCredentials = this.withCredentials || false + this.custom.xhr.responseType = this.responseType } this.proxy_send(...arguments) } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 24ea3e5a..ac467584 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -14,6 +14,7 @@ { + this.$refs.password.focus() + }) }, handleLogin() { this.$refs.loginForm.validate(valid => {