diff --git a/packages/taroize/src/wxml.ts b/packages/taroize/src/wxml.ts index 9042f17186ec..171f974eece6 100644 --- a/packages/taroize/src/wxml.ts +++ b/packages/taroize/src/wxml.ts @@ -861,15 +861,7 @@ function parseAttribute (attr: Attribute) { jsxValue = t.jSXExpressionContainer(t.memberExpression(t.thisExpression(), t.identifier('privateStopNoop'))) globals.hasCatchTrue = true } else if (t.isStringLiteral(jsxValue)) { - jsxValue = t.jSXExpressionContainer( - t.callExpression( - t.memberExpression( - t.memberExpression(t.thisExpression(), t.identifier('privateStopNoop')), - t.identifier('bind') - ), - [t.thisExpression(), t.memberExpression(t.thisExpression(), t.identifier(jsxValue.value))] - ) - ) + jsxValue = t.jSXExpressionContainer(t.memberExpression(t.thisExpression(), t.identifier(jsxValue.value))) } } return t.jSXAttribute(t.jSXIdentifier(jsxKey), jsxValue)