快乐的梦鱼 2 nedēļas atpakaļ
vecāks
revīzija
4dfbd87a69
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  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();