bug: 打印数量我为空的时候,不请求后台

This commit is contained in:
my_ong 2024-12-14 11:29:19 +08:00
parent 526bfa65b5
commit 9e27d62e0e

View File

@ -80,6 +80,7 @@
// //
const fetchAndPrintBarcodes = (count: number) => { const fetchAndPrintBarcodes = (count: number) => {
if (count <= 0) return
// //
const container = document.getElementById('barcodes-container') const container = document.getElementById('barcodes-container')
if (!container) throw new Error('条形码容器未找到') if (!container) throw new Error('条形码容器未找到')