对接接口
This commit is contained in:
+31
-5
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user