diff --git a/src/renderer/App.vue b/src/renderer/App.vue
index 3b1fa16..a810f94 100644
--- a/src/renderer/App.vue
+++ b/src/renderer/App.vue
@@ -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: {}
}
-
diff --git a/src/renderer/components/workAdd/workAdd.vue b/src/renderer/components/workAdd/workAdd.vue
index ffbdc40..641aacc 100644
--- a/src/renderer/components/workAdd/workAdd.vue
+++ b/src/renderer/components/workAdd/workAdd.vue
@@ -88,7 +88,7 @@
+
+