浏览代码

招聘会标题

Xiao_123 5 月之前
父节点
当前提交
ea6e2d1569
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()