调整bug

This commit is contained in:
24kycj
2025-05-13 15:52:13 +08:00
parent 944eae1948
commit 73cca88ed3
3 changed files with 64 additions and 21 deletions
+7 -3
View File
@@ -461,16 +461,20 @@ const actions = {
let error = data.resp_info
if (error.error) {
let errors = error.error
console.log(errors)
let continues = [8, 9, 10, 11, 12]
for (let i = 0; i < errors.length; i++) {
setTimeout(() => {
commit('setData', { name: 'printer_error', data: { type: 'error', notify: Error[errors[i]] } })
let req = continues.indexOf(errors[i]) > -1 ? 'continue_task' : ''
if (req) {
commit('setData', { name: 'printer_error', data: { type: 'error', confirm: Error[errors[i]], req: req } })
} else {
commit('setData', { name: 'printer_error', data: { type: 'error', notify: Error[errors[i]] } })
}
}, 500)
}
}
if (error.error1) {
let errors = error.error1.toString(2).split('').reverse()
console.log(errors)
for (let i = 0; i < errors.length; i++) {
if (errors[i] == 1) {
setTimeout(() => {