调整bug
This commit is contained in:
+16
-7
@@ -16,13 +16,10 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
let that = this
|
||||
if (that.$store.getters.token) {
|
||||
that.$store.dispatch('chat/initWebSocket') // 初始化websocket
|
||||
}
|
||||
this.showNotify()
|
||||
this.showNotify()
|
||||
this.showNotify()
|
||||
this.showNotify()
|
||||
// if (that.$store.getters.token) {
|
||||
|
||||
// }
|
||||
that.$store.dispatch('chat/initWebSocket') // 初始化websocket
|
||||
},
|
||||
watch: {
|
||||
'$store.state.chat.printer_error': {
|
||||
@@ -50,6 +47,18 @@ export default {
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
},
|
||||
'$store.state.chat.isConnect': {
|
||||
handler(val) {
|
||||
let that = this
|
||||
if (val) {
|
||||
that.errors = []
|
||||
} else {
|
||||
that.$notify.closeAll()
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user