From b73b25a10a789f79831ff137a62f01a97b9b37ec Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Tue, 25 Feb 2025 10:02:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor(live):=20=E8=B0=83=E6=95=B4=E8=89=BA?= =?UTF-8?q?=E6=9C=AF=E5=93=81=E7=8A=B6=E6=80=81=E6=9B=B4=E6=96=B0=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉 WS_TYPES.STOP_ARTWORK 消息类型中的 quoteStatus 更新 - 将 quoteStatus 更新移至 WS_TYPES.OVER 消息类型中 - 在 changeStatus 方法中添加日志输出,便于调试 --- app/stores/live/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/stores/live/index.js b/app/stores/live/index.js index 1da3c62..ed5402a 100644 --- a/app/stores/live/index.js +++ b/app/stores/live/index.js @@ -206,9 +206,10 @@ export const liveStore = createGlobalState(() => { handleTipMessage(tip?.tipType) break case WS_TYPES.STOP_ARTWORK: - quoteStatus.value = false + //quoteStatus.value = false break case WS_TYPES.OVER: + quoteStatus.value = false message.success(createMessageConfig( t('live_room.text10'), '#575757', @@ -234,6 +235,7 @@ export const liveStore = createGlobalState(() => { }) } const changeStatus = () => { + console.log('changeStatus') if (auctionData.value.artwork?.isSelling&&!auctionData.value.artwork.isSoled){ quoteStatus.value = !quoteStatus.value }else {