lifanagju_citu 1 kuukausi sitten
vanhempi
commit
4366d74b93
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  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()
   }
 }