调整bug

This commit is contained in:
24kycj
2025-04-09 12:13:26 +08:00
parent f4884d14f2
commit 9386c39ed9
6 changed files with 119 additions and 62 deletions
+16 -7
View File
@@ -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: {