Refactor job detail navigation in index page to include encrypted job ID and remove login check
This commit is contained in:
@@ -268,10 +268,11 @@ const checkLogin = () => {
|
|||||||
};
|
};
|
||||||
// 跳转到详情页面
|
// 跳转到详情页面
|
||||||
function nextDetail(job) {
|
function nextDetail(job) {
|
||||||
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${job.encryptJobId}`);
|
||||||
// 登录检查
|
// 登录检查
|
||||||
if (checkLogin()) {
|
// if (checkLogin()) {
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
|
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatMD(dateStr) {
|
function formatMD(dateStr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user