feat: 代客下单增加商品编辑时商品不足提示
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user