mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
fix(amis-editor): 渲染错误拦截不展示schema
This commit is contained in:
parent
05620349de
commit
9187f8b2e9
@ -187,9 +187,7 @@ export function makeWrapper(
|
||||
value={this.editorNode || (this.context as any)}
|
||||
>
|
||||
<ErrorBoundary
|
||||
customErrorMsg={`拦截到${
|
||||
info.type
|
||||
}渲染错误,当前组件信息: ${JSON.stringify(this.props.$schema)}`}
|
||||
customErrorMsg={`拦截到${info.type}渲染错误`}
|
||||
fallback={() => {
|
||||
return (
|
||||
<div className="renderer-error-boundary">
|
||||
|
@ -135,7 +135,7 @@ export function supportStatic<T extends FormControlProps>() {
|
||||
|
||||
return (
|
||||
<ErrorBoundary
|
||||
customErrorMsg={`拦截到${props.$schema.type}渲染错误,当前组件schema: ${props.$schema}`}
|
||||
customErrorMsg={`拦截到${props.$schema.type}渲染错误`}
|
||||
fallback={() => {
|
||||
return (
|
||||
<div className="renderer-error-boundary">
|
||||
|
Loading…
Reference in New Issue
Block a user