You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constVueComponentInReact=applyVueInReact(VueComponent,{// beforeVueAppMount can only be used in the outermost layer// Because veaury will only create a vue application in the outermost layerbeforeVueAppMount(app){app.config.errorHandler=function(err,vm,info){// handle errorconsole.log(`Error: ${err.toString()}\nInfo: ${info}`);}}}asMagicOptions)
错误捕获,在React中,无法通过winidow.onerror捕获vue组件的错误,一般Vue的错误都是通过app.config.errerHandle来捕获的,但是现在没有初始话app的过程,无法捕获错误。
The text was updated successfully, but these errors were encountered: