Commit c6fa12ce authored by jingnan's avatar jingnan 👀

打印标签需要点击两次才会弹出打印界面bug修改

parent f6a2d5f0
......@@ -408,12 +408,12 @@ export default {
print() {
if (this.flag) {
this.flag = false
if (this.$refs.print.innerHTML) {
this.timer = setInterval(() => {
if (this.$refs.print.innerHTML) {
this.printTag()
clearInterval(this.timer)
}, 300)
}
}, 300)
setTimeout(() => {
this.flag = true
}, 1000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment