소스 검색

职位编辑

lifanagju_citu 1 개월 전
부모
커밋
4366d74b93
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      pagesB/positionDetail/index.vue

+ 4 - 4
pagesB/positionDetail/index.vue

@@ -164,14 +164,14 @@ const handleEdit = async () => {
   }
   uni.showLoading({ title: '加载中 . . . ' })
   try {
-    const { data } = await getEnterprisePubJobTypePermission()
-    if (!data || !data.length) {
+    const res = await getEnterprisePubJobTypePermission()
+    if (!res?.data?.length) {
       uni.showToast({ title: '没有该操作权限,请联系平台管理员升级后再试', icon: 'none', duration: 2000 })
       return
     }
-    uni.hideLoading()
+    uni.navigateTo({ url: `/pagesB/positionEdit/index?jobId=${jobId}` })
     // 跳转编辑页面
-  } catch {
+  } finally {
     uni.hideLoading()
   }
 }