Q-ABAB 2 vuotta sitten
vanhempi
commit
9d4fb309b3
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/App.vue

+ 2 - 1
src/App.vue

@@ -41,7 +41,8 @@ export default {
     }
   },
   mounted(){
-    this.userLogin();
+
+    if(getToken())this.userLogin();
     window.addEventListener('beforeunload', this.CleanStorage());
   },
   beforeDestroy(){