Ver código fonte

修改了username

duanxiaoduan 1 ano atrás
pai
commit
decfe2f2ff
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/store/modules/user.js

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

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