lsc 2 년 전
부모
커밋
87460a3375
5개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.1e66dd9a.js
  4. 0 0
      dist/static/js/app.b630fd79.js
  5. 7 7
      src/store/modules/user.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/report.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.1e66dd9a.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.b630fd79.js


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

@@ -84,14 +84,14 @@ const actions = {
         .then(response => {
           console.log(response)
           // const { data } = response
-
-          // if (!data) {
-          //   reject('验证失败,请重新登录。')
-          // }
+          const data = response[0][0]
+          if (!data) {
+            reject('验证失败,请重新登录。')
+          }
           // console.log(response)
-          // commit('SET_USERINFO', response.data)
-          // resolve(data)
-          resolve()
+          commit('SET_USERINFO', data)
+          resolve(data)
+          // resolve()
         })
         .catch(error => {
           reject(error)

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.