优化bug

This commit is contained in:
24kycj
2025-03-18 15:07:29 +08:00
parent b1a711a5ab
commit 16eb5bfa33
3 changed files with 164 additions and 13 deletions
+2 -2
View File
@@ -198,7 +198,7 @@ const defaultData = {
calibration_flag: 0, // 是否校验设备
lack_ink: 0, // 缺墨警告
cover_flag: false, //是否盖盖
printer_name: '4200', //设备名称
printer_name: '', //设备名称
printer_status: 'I', //设备状态 数字转成字符为I
printer_tray: 'I', //设备托盘状态 数字转成字符为I
red_last: 0, //红色墨盒遗留
@@ -394,7 +394,7 @@ const actions = {
commit('setData', { name: 'cd_list', data: cds })
// 手动设置驱动
} else if (data.resp_name === 'get_all_cdlist') {
commit('setData', { name: 'cdList', data: data.resp_info.cd_list })
commit('setData', { name: 'cdList', data: data.resp_info.cd_list || [] })
// 系统配置
} else if (data.resp_name === 'get_system_config') {
commit('setData', { name: 'settings', data: data.resp_info })