feat: 代客下单增加商品编辑时商品不足提示

This commit is contained in:
YeMingfei666 2025-04-16 17:30:13 +08:00
parent 90d90c55b8
commit 8a9cca4ee2
1 changed files with 1 additions and 1 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) {