Explorar el Código

招聘会标题

Xiao_123 hace 5 meses
padre
commit
ea6e2d1569
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()