待办处理后跳转到待办列表
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user