From 51b3a212e86d21d9c7d3fa75e3ba821b11e01b01 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 3 Mar 2025 14:56:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E4=BC=98=E5=8C=96=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=97=B4=E4=BB=B7=E6=A0=BC=E5=8F=98=E6=9B=B4=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 TIP_TYPES.CHANGEPRICEINFO 相关的处理逻辑 - 在 WebSocket 消息处理中添加 CHANGEPRICEINFO 类型的处理 - 优化代码结构,提高可维护性 --- app/stores/live/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/stores/live/index.js b/app/stores/live/index.js index 7e0b7d6..c9b1b52 100644 --- a/app/stores/live/index.js +++ b/app/stores/live/index.js @@ -172,9 +172,6 @@ export const liveStore = createGlobalState(() => { quoteStatus.value=false message.success(createMessageConfig(t('live_room.text4'), '#18A058', t('live_room.text5'))) }, - [TIP_TYPES.CHANGEPRICEINFO]: ()=>{ - message.warning(t('live_room.text11')) - }, [TIP_TYPES.ARTWORK_OVER]: () =>{ quoteStatus.value=false message.success(createMessageConfig( @@ -228,6 +225,9 @@ export const liveStore = createGlobalState(() => { } )) break + case WS_TYPES.CHANGEPRICEINFO: + message.warning(t('live_room.text11')) + break } })