Browse Source

企业推荐人才-邀请面试:无招聘中职位不可邀请面试

Xiao_123 3 tuần trước cách đây
mục cha
commit
16a9965b80
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/views/recruit/enterprise/search/recommend/index.vue

+ 4 - 1
src/views/recruit/enterprise/search/recommend/index.vue

@@ -154,6 +154,9 @@ const handleChangePage = (e) =>{
 // 面试邀请
 const itemData = ref({})
 const handleInvite = ({ userId }) => {
+  // 企业必须有招聘中的职位才能发起沟通
+  if (!selectItems.value.items.length) return Snackbar.warning('请先发布职位')
+  
   const job = selectItems.value.items.find(e => e.value === query.value.jobId).data
   itemData.value = {
     userId,
@@ -187,7 +190,7 @@ const handleSubmit = async () => {
 
 // 立即沟通
 const handleCommunicate = async (item) => {
-  // // 企业必须有招聘中的职位才能发起沟通
+  // 企业必须有招聘中的职位才能发起沟通
   if (!selectItems.value.items.length) return Snackbar.warning('请先发布职位')
   const userId = item.userId
   if (!userId) return