Procházet zdrojové kódy

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

morrxy před 5 roky
rodič
revize
c9cb7db3ce
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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