|
@@ -96,7 +96,7 @@ const actions = {
|
|
|
login({ commit }, userInfo) {
|
|
|
const { username, password } = userInfo
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- login({ user_name: username.trim(), password: password }).then(response => {
|
|
|
+ login({ username: username.trim(), password: password }).then(response => {
|
|
|
// login({ username: username.trim(), password: password }).then(response => {
|
|
|
const { data, msg } = response
|
|
|
if (msg !== 'ok') {
|