ソースを参照

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 = {
         const { data } = response
 
         if (!data) {
-          reject('Verification failed, please Login again.')
+          return reject('Verification failed, please Login again.')
         }
 
         const { name, avatar } = data