diff --git a/healthlink-his-ui/src/components/NoticePanel.vue b/healthlink-his-ui/src/components/NoticePanel.vue
index d1ba0ae8d..7782de420 100755
--- a/healthlink-his-ui/src/components/NoticePanel.vue
+++ b/healthlink-his-ui/src/components/NoticePanel.vue
@@ -83,8 +83,7 @@
+ >{{ safeContent }}
@@ -106,6 +105,10 @@ const detailVisible = ref(false)
const noticeList = ref([])
const currentNotice = ref({})
const readNoticeIds = ref(new Set())
+const safeContent = computed(() => {
+ const content = currentNotice.value && currentNotice.value.noticeContent
+ return content ? String(content).replace(/<[^>]*>/g, '') : ''
+})
// 打开公告/通知面板
function open() {
diff --git a/healthlink-his-ui/src/components/NoticePanel/index.vue b/healthlink-his-ui/src/components/NoticePanel/index.vue
index 06f99a8ab..4722836dc 100755
--- a/healthlink-his-ui/src/components/NoticePanel/index.vue
+++ b/healthlink-his-ui/src/components/NoticePanel/index.vue
@@ -112,8 +112,7 @@
+ >{{ safeContent }}
@@ -156,6 +155,10 @@ const activeNotice = computed(() => {
const unreadCount = computed(() => {
return noticeList.value.filter(n => !n.isRead).length
})
+const safeContent = computed(() => {
+ const content = activeNotice.value && activeNotice.value.noticeContent
+ return content ? String(content).replace(/<[^>]*>/g, '') : ''
+})
// 获取公告类型图标
// noticeType: 1=通知, 2=公告
diff --git a/healthlink-his-ui/src/components/NoticePopup/index.vue b/healthlink-his-ui/src/components/NoticePopup/index.vue
index 55a9ed526..b733799a5 100755
--- a/healthlink-his-ui/src/components/NoticePopup/index.vue
+++ b/healthlink-his-ui/src/components/NoticePopup/index.vue
@@ -91,8 +91,7 @@
+ >{{ safeContent }}
@@ -166,6 +165,10 @@ const unreadCount = computed(() => {
const hasUnread = computed(() => {
return unreadCount.value > 0
})
+const safeContent = computed(() => {
+ const content = activeNotice.value && activeNotice.value.noticeContent
+ return content ? String(content).replace(/<[^>]*>/g, '') : ''
+})
// 获取公告类型图标
// noticeType: 1=通知, 2=公告