mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-08-06 10:57:25 +08:00
fix: 更新配置和代码逻辑以提升稳定性和可读性
- 在 manifest.json 和 project.config.json 中启用 postcss 和 enhance 设置 - 在多个 Vue 组件中优化空值处理逻辑,确保更健壮的代码执行 - 调整样式和布局以提升用户体验
This commit is contained in:
@@ -898,7 +898,9 @@ function normalizeMqttLiveStatus(status: string | number) {
|
||||
2: LIVE_STATUS.ENDED,
|
||||
3: LIVE_STATUS.PAUSED,
|
||||
}
|
||||
return numMap[status as number] ?? roomInfo.value.liveStatus
|
||||
return numMap[status as number] != null
|
||||
? numMap[status as number]
|
||||
: roomInfo.value.liveStatus
|
||||
}
|
||||
|
||||
function handleMqttLiveMessage(message: string) {
|
||||
|
||||
Reference in New Issue
Block a user