jwyu 1 year ago
parent
commit
32ce6de585
1 changed files with 5 additions and 1 deletions
  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')
+    }
 }