提交代码
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -284,7 +284,7 @@ function reConnect(wsUrl) {
|
||||
// reConnectCount.value++
|
||||
// initWebSocket(wsUrl)
|
||||
ws.value.reconnect();
|
||||
}, 1000)
|
||||
}, 2000)
|
||||
}
|
||||
|
||||
|
||||
@@ -412,11 +412,11 @@ onMounted(() => {
|
||||
getBarCode(e)
|
||||
})
|
||||
// 监听网络在线状态
|
||||
window.addEventListener("onLine", updateInfo)
|
||||
// 监听网络离线
|
||||
window.addEventListener("offLine", updateInfo)
|
||||
// 监听网络信息变化
|
||||
navigator.connection.addEventListener('change', updateInfo)
|
||||
// window.addEventListener("onLine", updateInfo)
|
||||
// // 监听网络离线
|
||||
// window.addEventListener("offLine", updateInfo)
|
||||
// // 监听网络信息变化
|
||||
// navigator.connection.addEventListener('change', updateInfo)
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
@@ -84,6 +84,7 @@ export const usePrint = defineStore({
|
||||
skuName: item.skuName,
|
||||
masterId: props.orderInfo.tableName,
|
||||
deviceName: this.deviceLableList[0].config.deviceName,
|
||||
// deviceName: "Xprinter XP-T202UA",
|
||||
createdAt: dayjs(props.createdAt).format("YYYY-MM-DD HH:mm:ss"),
|
||||
isPrint: false,
|
||||
count: `${count}/${sum}`,
|
||||
|
||||
Reference in New Issue
Block a user