廖井涛
6 天以前 a660db06773007b1be690e0674829c00a57aeb7b
north-glass-erp/northglass-erp/src/hook/queue.js
@@ -13,9 +13,7 @@
    this.tick = setInterval(()=>{
                if(typeof queue === 'object' && Array.isArray(queue)){
                    if (queue.length > 0) {
                        console.log(printer)
                        hiprintTemplate.value.print2(queue[0],{printer:printer})
                    if (queue.length > 0) {hiprintTemplate.value.print2(queue[0],{printer:printer})
                        queue.shift(); // 打印任务,并从队列中移除
                    }else{
                        clearInterval(this.tick)
@@ -30,6 +28,6 @@
                }
        },
        5000)
        500)
};