jwyu 1 năm trước cách đây
mục cha
commit
32ce6de585
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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')
+    }
 }