12 lines
210 B
JavaScript
12 lines
210 B
JavaScript
Component({
|
|
methods: {
|
|
goBack() {
|
|
if (getCurrentPages().length > 1) {
|
|
wx.navigateBack({ delta: 1 });
|
|
} else {
|
|
wx.reLaunch({ url: "/pages/home/home" });
|
|
}
|
|
},
|
|
},
|
|
});
|