对接接口

This commit is contained in:
24kycj
2024-11-12 14:23:50 +08:00
parent ef2607a5fd
commit 5d635afeb1
6 changed files with 349 additions and 105 deletions
+31 -5
View File
@@ -12,12 +12,38 @@ export default {
this.$store.dispatch('chat/initWebSocket') // 初始化websocket
}
},
methods: {
}
watch: {
'$store.state.chat.printer_error': {
handler(val) {
if (val.error1 || val.error1 === 0) {
this.$notify({
title: '温馨提示',
message: this.$store.state.Error1[val.error1],
duration: 0
})
}
if (val.error2 || val.error2 === 0) {
this.$notify({
title: '温馨提示',
message: this.$store.state.Error2[val.error2],
duration: 0
})
}
if (val.error3 || val.error3 === 0) {
this.$notify({
title: '温馨提示',
message: this.$store.state.Error3[val.error3],
duration: 0
})
}
},
deep: true,
immediate: true
}
},
methods: {}
}
</script>
<style lang="scss">
@use './styles/index.scss'; // 全局自定义的css样式
@use './styles/index.scss'; // 全局自定义的css样式
</style>