feat: 代客下单增加商品编辑时商品不足提示
This commit is contained in:
parent
90d90c55b8
commit
8a9cca4ee2
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue