Commit 3c380669 authored by 张海景's avatar 张海景

update:修改关闭打印机方法

parent 4912b961
......@@ -33,7 +33,7 @@ module.exports = {
},
methods: {
createSocket() {
if (Object.keys(getApp().globalData.printSocket).length > 0) {
if (getApp().globalData.printSocket && Object.keys(getApp().globalData.printSocket).length > 0) {
getApp().globalData.printSocket.close && getApp().globalData.printSocket.close()
}
this.$u.vuex('vuex_printConnect', false)
......
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