refactor(live): 调整艺术品状态更新逻辑
- 注释掉 WS_TYPES.STOP_ARTWORK 消息类型中的 quoteStatus 更新 - 将 quoteStatus 更新移至 WS_TYPES.OVER 消息类型中 - 在 changeStatus 方法中添加日志输出,便于调试
This commit is contained in:
parent
a7f4a620b2
commit
b73b25a10a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user