Browse Source

招聘会标题

Xiao_123 5 months ago
parent
commit
ea6e2d1569
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/recruit/enterprise/jobFair/detailsBox.vue

+ 1 - 1
src/views/recruit/enterprise/jobFair/detailsBox.vue

@@ -14,7 +14,7 @@ const route = useRoute()
 
 const getMsg = async () => {
   const res = await getJobFair(route.params.id)
-  route.matched[1].meta.title = res.title.split('<p>').join('')
+  route.matched[1].meta.title = res.title.replace(/<\/?p[^>]*>/gi, '')
   system.setBreadcrumbs(route.matched, route.fullPath)
 }
 getMsg()