fix:打印次数大于1时,再走循环
This commit is contained in:
parent
01a82fae5b
commit
14c161a917
|
@ -105,6 +105,7 @@ export default {
|
|||
let obj = {};
|
||||
obj.printer_commands = str;
|
||||
obj.printer_name = that.printer_name;
|
||||
if(that.print_count>1){
|
||||
let printerInterval = that.$TOOL.data.get('printerInterval');
|
||||
if(printerInterval==null){
|
||||
let intervalID = setInterval(() => {
|
||||
|
@ -116,6 +117,10 @@ export default {
|
|||
}else{
|
||||
that.$message.warning("请等待当前打印任务完成");
|
||||
}
|
||||
}else{
|
||||
that.$API.wpm.prints.req(obj).then((response) => {});
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
closed(){
|
||||
|
|
Loading…
Reference in New Issue