walter 1 rok temu
rodzic
commit
7af0d33fec
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/store/modules/user.js

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

@@ -220,7 +220,7 @@ const user = {
           account_info = JSON.parse(localStorage.getItem('account_info'))
         }
         let nowDate = moment().format("YYYY-MM-DD HH:mm:ss");
-        if(account_info &&account_info.data.localStorageExpire&&moment(nowDate).isBefore(account_info.data.localStorageExpire)){
+        if(account_info && account_info.data && account_info.data.localStorageExpire&&moment(nowDate).isBefore(account_info.data.localStorageExpire)){
           commit('SET_ACCOUNTINFO', account_info.data)
           resolve(account_info)
         }else{