fix:未发布跳转逻辑调整

This commit is contained in:
zxj
2025-12-22 23:46:44 +08:00
parent f139056730
commit 2634e534c9
2 changed files with 5 additions and 1 deletions

View File

@@ -314,6 +314,10 @@ export default {
this.bpmApprovalRequired = res.data.bpmApprovalRequired; this.bpmApprovalRequired = res.data.bpmApprovalRequired;
this.projectId = res.data.id || ""; this.projectId = res.data.id || "";
this.projectName = res.data.name || ""; this.projectName = res.data.name || "";
if (res.data.status != 3) {
this.$refs.customMessage.show("社招新员工项目待发布,请等候");
this.$router.push("/new-employee/welcome");
}
}, },
async loadList() { async loadList() {
if (!this.studentId || !this.projectId) return; if (!this.studentId || !this.projectId) return;

View File

@@ -147,7 +147,7 @@ export default {
if (res.data.approvalResults) { if (res.data.approvalResults) {
this.approvalResults = res.data.approvalResults; this.approvalResults = res.data.approvalResults;
if (res.data.approvalResults != 1) { if (res.data.approvalResults != 1 && isPublish) {
this.$router.push("/new-employee/study"); this.$router.push("/new-employee/study");
} }
} }