From 74746fc2c2b844d6946e493260eff93faa08be76 Mon Sep 17 00:00:00 2001 From: ArvinLovegood Date: Thu, 6 Mar 2025 15:49:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(frontend):=E4=BC=98=E5=8C=96=E8=82=A1?= =?UTF-8?q?=E7=A5=A8=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了原有的 message.info 弹窗- 添加了 notify.info 通知,包含自定义的头像、标题和内容 - 通知内容采用左侧对齐和较大的字体 - 通知持续时间延长至 30 秒 --- frontend/src/components/stock.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/stock.vue b/frontend/src/components/stock.vue index 582bb9a..f9fd8dd 100644 --- a/frontend/src/components/stock.vue +++ b/frontend/src/components/stock.vue @@ -757,7 +757,25 @@ AI赋能股票分析:自选股行情获取,成本盈亏展示,涨跌报警 function share(code,name){ ShareAnalysis(code,name).then(msg => { - message.info(msg) + //message.info(msg) + notify.info({ + avatar: () => + h(NAvatar, { + size: 'small', + round: false, + src: icon.value + }), + title: '分享到社区', + duration:1000*30, + content: () => { + return h('div', { + style: { + 'text-align': 'left', + 'font-size': '14px', + } + }, { default: () => msg }) + }, + }) }) }