mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-03 13:22:10 +08:00
添加错误处理兼容
This commit is contained in:
parent
cb844003f2
commit
71055423f6
@ -29,6 +29,6 @@ if (process.env.NODE_ENV !== 'development') {
|
||||
|
||||
setNativeExceptionHandler((errorString) => {
|
||||
log.error(errorString)
|
||||
// console.error('+++++', errorString, '+++++')
|
||||
})
|
||||
console.log('+++++', errorString, '+++++')
|
||||
}, false)
|
||||
}
|
||||
|
@ -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'))
|
||||
this.tempLog = null
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user