Redesign mini program navigation and add back controls
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
Component({
|
||||
methods: {
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
wx.navigateBack({ delta: 1 });
|
||||
} else {
|
||||
wx.reLaunch({ url: "/pages/home/home" });
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user