jwyu 2 yıl önce
ebeveyn
işleme
a2112e34eb
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      src/views/tabbar/Home.vue

+ 4 - 0
src/views/tabbar/Home.vue

@@ -7,6 +7,10 @@ function goNext(path){
     router.push(path)
 }
 
+if(!localStorage.getItem('token')){
+    router.replace('/login')
+}
+
 </script>
 
 <template>