Files
sundynix-pets/pets-fe/components/page-back/index.js
T
Blizzard 8a3036f0db
ci-cd / verify (push) Successful in 4s
ci-cd / deploy (push) Skipped
Redesign mini program navigation and add back controls
2026-10-04 09:48:12 +08:00

12 lines
210 B
JavaScript

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