Commit 27874b8e authored by 张海景's avatar 张海景

update:修改打印机断开加上重连逻辑

parent 8443f5b0
......@@ -25,8 +25,7 @@ module.exports = {
}
},
data() {
return {
}
return {}
},
computed: {
// 将vuex的state中的所有变量,解构到全局混入的mixin中
......@@ -65,6 +64,7 @@ module.exports = {
socket.on('disconnect', () => {
console.log('打印机断开');
this.$u.vuex('vuex_printConnect', false);
this.createSocket()
});
getApp().globalData.printSocket = socket
},
......
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