浏览代码

perf[getInfo]:stop run after reject (#599)

morrxy 5 年之前
父节点
当前提交
c9cb7db3ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/store/modules/user.js

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

@@ -50,7 +50,7 @@ const actions = {
50
         const { data } = response
50
         const { data } = response
51
 
51
 
52
         if (!data) {
52
         if (!data) {
53
-          reject('Verification failed, please Login again.')
53
+          return reject('Verification failed, please Login again.')
54
         }
54
         }
55
 
55
 
56
         const { name, avatar } = data
56
         const { name, avatar } = data