快乐的梦鱼 hai 2 semanas
pai
achega
4dfbd87a69
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/components/nav/NavBar.vue

+ 7 - 1
src/components/nav/NavBar.vue

@@ -210,7 +210,13 @@ function handleButtonNavBack(button: NavBarButtonTypes, callback: () => void) {
         url: theme.getVar('AppHomePage', '/pages/index/index'),
       });
     } else {
-      uni.navigateBack();
+      uni.navigateBack({
+        fail() {
+          uni.reLaunch({
+            url: theme.getVar('AppHomePage', '/pages/index/index'),
+          }); 
+        },
+      });
     }
   } else {
     callback();