瀏覽代碼

职位编辑

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