From 386b8505028d3f37432b17495582fb2e288fbee9 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Sun, 23 Nov 2025 15:20:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/header-notice.vue | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/pingan/src/layout/components/header-notice.vue b/pingan/src/layout/components/header-notice.vue index c580ae5..f45f26c 100644 --- a/pingan/src/layout/components/header-notice.vue +++ b/pingan/src/layout/components/header-notice.vue @@ -26,7 +26,10 @@ :key="index" class="ele-notice-item" > -
+
{{ item.content }}
@@ -196,6 +199,38 @@ .catch((e) => { this.$message.error(e.message); }); + }, + goDetail(row) { + let btn = { + showCancelButton: false, + type: 'warning' + }; + if (row.url) { + btn = { + confirmButtonText: '查看详情', + showCancelButton: false, + type: 'warning' + }; + } + setRead({ ids: [row.id] }) + .then(() => { + this.query(); + this.$confirm(row.content, '提示', btn) + .then(() => { + let path = row.url; + if (path) { + this.$router.push({ + path + }); + } + }) + .catch(() => { + // 取消 + }); + }) + .catch((e) => { + this.$message.error(e.message); + }); } }, beforeDestroy() {