jwyu 2 жил өмнө
parent
commit
a2112e34eb

+ 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>