fix(amis-editor): 渲染错误拦截不展示schema

This commit is contained in:
wibetter 2023-11-24 17:19:45 +08:00
parent 05620349de
commit 9187f8b2e9
2 changed files with 2 additions and 4 deletions

View File

@ -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">

View File

@ -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">