Showing
1 changed file
with
3 additions
and
1 deletions
@@ -96,7 +96,9 @@ Component({ | @@ -96,7 +96,9 @@ Component({ | ||
96 | if(getCurrentPages().length === 1) { | 96 | if(getCurrentPages().length === 1) { |
97 | router.go('index'); | 97 | router.go('index'); |
98 | } else { | 98 | } else { |
99 | - wx.navigateBack() | 99 | + wx.navigateBack({ |
100 | + delta: getCurrentPages().length - 1 | ||
101 | + }) | ||
100 | } | 102 | } |
101 | 103 | ||
102 | }, | 104 | }, |
-
Please register or login to post a comment