This commit is contained in:
24kycj
2024-11-29 10:35:43 +08:00
parent f125b5cace
commit af7380352b
3 changed files with 74 additions and 52 deletions
+28
View File
@@ -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