user username to login

This commit is contained in:
Pan
2017-08-30 18:13:44 +08:00
parent b44c7384dc
commit 25a4be5a93
4 changed files with 92 additions and 78 deletions

View File

@@ -1,11 +1,11 @@
import fetch from '@/utils/fetch'
export function login(email, password) {
export function login(username, password) {
return fetch({
url: '/user/login',
method: 'post',
data: {
email,
username,
password
}
})