jwyu 1 anno fa
parent
commit
32ce6de585
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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')
+    }
 }