Browse Source

您还未上传过简历,请先上传简历

lifanagju_citu 8 months ago
parent
commit
2720aa53b9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      pagesB/positionDetail/index.vue

+ 5 - 1
pagesB/positionDetail/index.vue

@@ -206,6 +206,11 @@ const popup = ref()
 const resumeList = ref([])
 const selectIndex = ref(null)
 const handleDelivery = async () => {
+  if (!getAccessToken()) {
+    uni.showToast({ title: '您还未上传过简历,请先上传简历', icon: 'none', duration: 2000, })
+    
+    return
+  }
   if (delivery.value) {
     uni.showToast({ title: '您已投递过该职位!', icon: 'none', duration: 2000, })
     return
@@ -213,7 +218,6 @@ const handleDelivery = async () => {
   const { data } = await getPersonResumeCv()
   resumeList.value = data
   if (!resumeList.value?.length) {
-    uni.showToast({ title: '您还未上传过简历,请先上传简历', icon: 'none', duration: 2000, })
     return
   }
   // show.value = true