优化打印效果

This commit is contained in:
gyq
2024-03-07 09:07:22 +08:00
parent 5d96435125
commit b550cf3fd8
12 changed files with 176 additions and 235 deletions

View File

@@ -66,7 +66,7 @@ import { ipcRenderer } from 'electron'
const emit = defineEmits('paySuccess')
const dialogVisible = ref(false)
const dialogVisible = ref(true)
const props = defineProps({
cart: {
type: Array,
@@ -101,7 +101,7 @@ function printHandle() {
remark: props.remark,
orderId: props.orderId
}
ipcRenderer.sendSync('printerInfoSync', JSON.stringify(data))
ipcRenderer.send('printerInfoSync', JSON.stringify(data))
}
// 订单已支付