guhongwei 4 vuotta sitten
vanhempi
commit
cbcc39f4c4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/views/live/index.vue

+ 1 - 1
src/views/live/index.vue

@@ -102,7 +102,7 @@ export default {
     sesstoken() {
       sessionStorage.setItem('token', this.token);
       let user = jwt.decode(this.token);
-      if (user.uid) {
+      if (user && user.uid) {
         this.setUser(user);
       }
     },