优化服务
This commit is contained in:
+7
-14
@@ -15,24 +15,17 @@ export default {
|
||||
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.message) {
|
||||
this.$message({
|
||||
message: val.message,
|
||||
type: val.type,
|
||||
})
|
||||
}
|
||||
if (val.error2 || val.error2 === 0) {
|
||||
if (val.notify) {
|
||||
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],
|
||||
message: val.notify,
|
||||
type: val.type,
|
||||
duration: 0
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user