lsc 2 年之前
父节点
当前提交
92602e5ec8
共有 5 个文件被更改,包括 10 次插入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.70003bd1.js
  5. 9 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.70003bd1.js


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

@@ -82,14 +82,16 @@ const actions = {
     return new Promise((resolve, reject) => {
     return new Promise((resolve, reject) => {
       getUser({ userid: state.token })
       getUser({ userid: state.token })
         .then(response => {
         .then(response => {
-          const { data } = response
-
-          if (!data) {
-            reject('验证失败,请重新登录。')
-          }
           console.log(response)
           console.log(response)
-          commit('SET_USERINFO', response.data)
-          resolve(data)
+          // const { data } = response
+
+          // if (!data) {
+          //   reject('验证失败,请重新登录。')
+          // }
+          // console.log(response)
+          // commit('SET_USERINFO', response.data)
+          // resolve(data)
+          resolve()
         })
         })
         .catch(error => {
         .catch(error => {
           reject(error)
           reject(error)

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