From 26e4b368c9c338343a28d2da42f90de0504b9111 Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Tue, 25 Jun 2024 16:51:02 +0800 Subject: [PATCH] uu --- components/tpx-bluetooth-print/render-template-native.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/tpx-bluetooth-print/render-template-native.vue b/components/tpx-bluetooth-print/render-template-native.vue index 15361d8..a69202c 100644 --- a/components/tpx-bluetooth-print/render-template-native.vue +++ b/components/tpx-bluetooth-print/render-template-native.vue @@ -36,6 +36,7 @@ export default { imgRes: {}, prtQueList: [], lastExeMark: undefined, + prtLoading: false, } }, mounted () { @@ -89,11 +90,16 @@ export default { this.prtQueList.push(obj) clearTimeout(this.lastExeMark) this.lastExeMark = setTimeout(()=> { + // if(this.prtLoading) { + // showToast('当前有打印任务未结束,请稍后再试') + // return false + // } this.finallyExecPrint() }, 500) }, async finallyExecPrint() { + this.prtLoading = true let conSta = await this.$refs.curBlueTooth.autoConnect() this.$emit('autoConnectCallback', conSta) @@ -107,9 +113,9 @@ export default { this.prtQueList[i] = undefined // 打印成功 清除当前数据 } } - } this.prtQueList = [] + this.prtLoading = false return true } }