소스 검색

修改了username

duanxiaoduan 1 년 전
부모
커밋
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') {