添加错误处理兼容

This commit is contained in:
lyswhut 2021-12-10 16:47:02 +08:00
parent cb844003f2
commit 71055423f6
2 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,6 @@ if (process.env.NODE_ENV !== 'development') {
setNativeExceptionHandler((errorString) => { setNativeExceptionHandler((errorString) => {
log.error(errorString) log.error(errorString)
// console.error('+++++', errorString, '+++++') console.log('+++++', errorString, '+++++')
}) }, false)
} }

View File

@ -16,7 +16,7 @@ const logTools = {
if (this.tempLog.length) this.writeLog(this.tempLog.map(m => `${m.time} ${m.type} ${m.text}`).join('\n----lx log----\n')) if (this.tempLog.length) this.writeLog(this.tempLog.map(m => `${m.time} ${m.type} ${m.text}`).join('\n----lx log----\n'))
this.tempLog = null this.tempLog = null
} catch (err) { } catch (err) {
console.error(err) console.log(err)
} }
}, },
} }