Commit bbdc5272 by zeven

修复没有打印机模块导致闪退问题

parent 50ad59e0
......@@ -190,8 +190,13 @@ if (_Printer) {
},
};
(async () => {
// 修复没有打印机模块导致闪退问题
try {
const isConnected = await Printer.isConnected();
if (!isConnected) await Printer.usbConnect();
} catch (e) {
// do nothing
}
})();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment