jwyu %!s(int64=2) %!d(string=hai) anos
pai
achega
32ce6de585
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/layouts/Index.vue

+ 5 - 1
src/layouts/Index.vue

@@ -24,7 +24,11 @@ function handleLoginOut(){
 }
 
 function goBack(){
-    router.back()
+    if(window.history.state.back){
+        router.back()
+    }else{
+        router.replace('/tabbar/home')
+    }
 }