Xiao_123 6 månader sedan
förälder
incheckning
8ec57df8ba
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/views/recruit/enterprise/positionManagement/components/add.vue

+ 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 () => {