This commit is contained in:
2025-04-16 17:31:49 +08:00
3 changed files with 30 additions and 9 deletions

View File

@@ -587,7 +587,7 @@ export const useCartsStore = defineStore("carts", () => {
WebSocketManager.subscribeToTopic(initParams, (msg) => {
console.log("收到消息:", msg);
if (msg.hasOwnProperty('status') && msg.status != 1) {
return ElMessage.error(msg.message || '操作失败')
return ElMessage.error(msg.message || msg.msg || '操作失败')
}
if (msg && msg.data) {
if (Array.isArray(msg.data) && msg.data.length && msg.data[0].table_code) {