Xiao_123 10 tháng trước cách đây
mục cha
commit
23add58795

+ 1 - 1
src/views/recruit/personal/shareJob/components/handleDeliveryCom.vue

@@ -6,7 +6,7 @@
     :widthType="2"
     titleClass="text-h6"
     title="简历投递"
-    @close="showQuickResumeDialog = false"
+    @close="showUploadFile = false"
     @submit="null"
   >
     <DeliveryForm ref="deliveryForm"></DeliveryForm>

+ 13 - 1
src/views/recruit/personal/shareJob/index.vue

@@ -120,6 +120,7 @@ const handleCheckJobDelivery = async () => {
 }
 
 // 效验求职者是否有收藏该职位
+const actions = ref(false)
 const isCollection = ref(false)
 const getCollectionStatus = async () => {
   if (!jobId) return
@@ -134,7 +135,12 @@ const handleLogin = () => {
 
 // 收藏&取消收藏职位
 const handleCollection = async () => {
-  if (!getPersonalToken()) return handleLogin()
+  // 效验登录状态
+  if (!getPersonalToken()) {
+    actions.value = true
+    handleLogin()
+    return
+  }
   if (!jobId) return
   const api = isCollection.value ? getPersonJobUnfavorite : getPersonJobFavorite
   await api(isCollection.value ? jobId : { jobId })
@@ -175,6 +181,12 @@ const handleDelivery = () => {
 const loginSuccess = async ({ type = false, info = {}, keyArr = [] }) => {
   const bool = await handleCheckJobDelivery()
   showQuickResumeDialog.value = false
+  // actions为true则是收藏时的登录,不需要弹窗选择简历
+  if (actions.value) {
+    actions.value = false
+    Snackbar.success('登录成功')
+    return 
+  }
   if (bool) return Snackbar.warning(t('resume.alreadyResume'))
   showHandleDelivery.value = !showQuickResumeDialog.value
   if (type) {