duanxiaoduan 1 год назад
Родитель
Сommit
decfe2f2ff
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/store/modules/user.js

+ 1 - 1
src/store/modules/user.js

@@ -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') {