调整bug
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user