投递简历的时候验证登录

This commit is contained in:
francis_fh
2026-01-14 23:07:09 +08:00
parent 637d50c811
commit a299608fca
2 changed files with 6 additions and 12 deletions

View File

@@ -289,7 +289,6 @@ onShow(() => {
}
// #endif
});
function initLoad(option) {
const jobId = decodeURIComponent(option.jobId);
if (jobId !== jobIdRef.value) {
@@ -413,6 +412,11 @@ function getCompetivetuveness(jobId) {
// 申请岗位
function jobApply() {
const tokenValue = uni.getStorageSync('token') || '';
if (!tokenValue) {
$api.msg('请您先登录');
return;
}
const jobId = jobInfo.value.jobId;
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
getDetail(jobId);