mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 13:07:40 +08:00
log render error instead of throwing
This commit is contained in:
parent
ef0d788fc1
commit
6e3e989a90
@ -65,7 +65,7 @@ export function renderMixin (Vue: Class<Component>) {
|
||||
if (config._isServer) {
|
||||
throw e
|
||||
} else {
|
||||
setTimeout(() => { throw e }, 0)
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
// return previous vnode to prevent render error causing blank component
|
||||
|
Loading…
Reference in New Issue
Block a user