待办处理后跳转到待办列表

This commit is contained in:
2025-10-31 15:27:08 +08:00
parent 8f79eeaae6
commit 64cfd5ef95
8 changed files with 150 additions and 147 deletions

View File

@@ -3,8 +3,8 @@ export function toBackPage(delay = 1000, onSuccess = () => {}) {
uni.navigateBack({
success: () => {
const pages = getCurrentPages();
if (pages.length > 1) {
const prevPage = pages[pages.length - 2];
if (pages && pages.length > 0) {
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
onSuccess(prevPage);
}
}