From b81d9e38b0bfca87716703fb18b38db44d524c99 Mon Sep 17 00:00:00 2001 From: long <18782126717@163.com> Date: Fri, 6 Jan 2023 16:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activiti/doneManage.vue | 17 ++++++++++++++++- src/views/activiti/historicDetail.vue | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/views/activiti/doneManage.vue b/src/views/activiti/doneManage.vue index d8fc2de..d1979ed 100644 --- a/src/views/activiti/doneManage.vue +++ b/src/views/activiti/doneManage.vue @@ -85,7 +85,8 @@ ]*>/g, ''); //匹配所有html标签 + + str = str.replace(/]*>/g, '

'); //去除标签内所有属性,并设置自定义类名 + + str = str.replace(/(\n)/g, '') //去除换行 + + str = str.replace(/\s+style="[^"]*"/g, '') //去除style样式 + + str = str.replace(/ /gi, '') //去除空格 + + str = str.replace(/\ -