Commit 2304a6eb by wusiyi

fix: 添加日志打印

parent 26a1bab1
......@@ -29,7 +29,8 @@ const useOrderStore = defineStore('order', {
data?: OrderData
}) {
console.log(content, 'content')
const { url, factoryNo, warehouseId, boxList, box, data, fromUser } = content
const { url, factoryNo, warehouseId, boxList, box, data, fromUser } =
content
if (Array.isArray(boxList)) {
boxList.forEach((item) => {
item.fromUser = fromUser
......@@ -78,6 +79,7 @@ const useOrderStore = defineStore('order', {
this.podBoxIndex = box
}
}
console.log(this.podBoxList, 'this.podBoxList')
},
// 清空所有箱子
clearPodBoxList() {
......
......@@ -796,6 +796,7 @@ const messageChange = (data: WebSocketMessage) => {
'%conWebSocketMessage',
'font-size: 20px; color: red;',
JSON.parse(more.txt),
more.fromUser,
)
}
} catch (e) {
......@@ -811,6 +812,18 @@ const messageChange = (data: WebSocketMessage) => {
code === 'FACTORY_POD_ORDER_BOX_FLUSH' ||
code === 'FACTORY_POD_ORDER_TOP_BOX_FLUSH'
) {
try {
if (typeof more.txt === 'string') {
console.log(
'%conWebSocketMessage',
'font-size: 20px; color: green;',
JSON.parse(more.txt),
more.fromUser,
)
}
} catch (e) {
console.error(e)
}
initOrderDetailBox()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment