更新
This commit is contained in:
@@ -15,6 +15,7 @@ export default {
|
||||
watch: {
|
||||
'$store.state.chat.printer_error': {
|
||||
handler(val) {
|
||||
console.log(val)
|
||||
if (val.message) {
|
||||
this.$message({
|
||||
message: val.message,
|
||||
@@ -29,6 +30,33 @@ export default {
|
||||
duration: 0
|
||||
})
|
||||
}
|
||||
if (val.confirm) {
|
||||
this.$confirm(val.confirm, '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
showClose: false,
|
||||
showCancelButton: false,
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
if (val.req && val.req === 'continue_task') {
|
||||
// 下一个任务
|
||||
this.$store.dispatch('websocketsend', {
|
||||
req_name: 'continue_task',
|
||||
req_type: 1,
|
||||
req_info: {}
|
||||
}).then(() => {
|
||||
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
}
|
||||
}).catch(() => {
|
||||
|
||||
});
|
||||
this.$messageBox({
|
||||
message: val.messageBox,
|
||||
type: val.type,
|
||||
})
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
|
||||
Reference in New Issue
Block a user