feat:回退优化

This commit is contained in:
zerosaturation 2026-06-15 14:27:34 +08:00
parent 56fc2f6beb
commit 12dd698d08

View File

@ -1190,7 +1190,17 @@ const confirmLogout = () => {
//
const goBack = () => {
uni.navigateBack();
//
const pages = getCurrentPages();
if (pages.length > 1) {
//
uni.navigateBack();
} else {
// square
uni.reLaunch({
url: "/pages/profile/myWorks",
});
}
};
//