优化返回页面

This commit is contained in:
pengxiaolong
2025-05-22 22:05:55 +08:00
parent 6ca66f45d4
commit c55be10783
59 changed files with 3428 additions and 44 deletions

View File

@@ -24,15 +24,17 @@ export default function request(urldata) {
}
});
} else {
this.$global.lastPage = uni.page.route;
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
uni.reLaunch({ url: "/pages/UserInformation/UserInformation" })
}
} else {
this.$global.lastPage = uni.page.route;
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
uni.navigateTo({ url: '/pages/login/login' })
}
},
fail: function (res) {
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
uni.navigateTo({ url: '/pages/login/login' })
reject(res);
}
});