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)

部分文件因为文件数量过多而无法显示