Xiao_123 6 ヶ月 前
コミット
8ec57df8ba

+ 2 - 1
src/views/recruit/enterprise/positionManagement/components/add.vue

@@ -130,7 +130,8 @@ if (route.query && route.query.id) {
 // 取消
 const handleCancel = () => {
   itemData.value = {}
-  router.push({ path: '/recruit/enterprise/position' })
+  const currentPage = router.currentRoute.value.path
+  router.push({ path: currentPage.indexOf('jobFair') !== -1 ? '/recruit/enterprise/jobFair' : '/recruit/enterprise/position' })
   // 新增职位发布需更新账户信息
   if (route.query && !route.query?.id) {
     setTimeout(async () => {