bug: 打印数量我为空的时候,不请求后台
This commit is contained in:
parent
526bfa65b5
commit
9e27d62e0e
@ -80,6 +80,7 @@
|
||||
|
||||
// 定义一个函数来从后端获取条形码字符串并打印
|
||||
const fetchAndPrintBarcodes = (count: number) => {
|
||||
if (count <= 0) return
|
||||
// 清空之前的条形码容器
|
||||
const container = document.getElementById('barcodes-container')
|
||||
if (!container) throw new Error('条形码容器未找到')
|
||||
|
Loading…
x
Reference in New Issue
Block a user