From af96202307be1036a32df6bbb9c6f8339e35bdd7 Mon Sep 17 00:00:00 2001 From: lvxiaojiao Date: Tue, 27 Jun 2023 20:31:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E5=8E=BB=E6=8E=89=E8=A1=A8=E8=BE=BE?= =?UTF-8?q?=E5=BC=8F=E7=BC=96=E8=BE=91=E5=99=A8=E7=BB=84=E4=BB=B6=E6=B2=A1?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../amis-editor/src/renderer/ExpressionFormulaControl.tsx | 4 ---- packages/amis-editor/src/renderer/FormulaControl.tsx | 4 ---- packages/amis-editor/src/renderer/TplFormulaControl.tsx | 4 ---- .../src/renderer/textarea-formula/TextareaFormulaControl.tsx | 4 ---- 4 files changed, 16 deletions(-) diff --git a/packages/amis-editor/src/renderer/ExpressionFormulaControl.tsx b/packages/amis-editor/src/renderer/ExpressionFormulaControl.tsx index c26a9b7fc..23d46a3b0 100644 --- a/packages/amis-editor/src/renderer/ExpressionFormulaControl.tsx +++ b/packages/amis-editor/src/renderer/ExpressionFormulaControl.tsx @@ -74,10 +74,6 @@ export default class ExpressionFormulaControl extends React.Component< async () => { this.appLocale = editorStore?.appLocale; this.appCorpusData = editorStore?.appCorpusData; - const variablesArr = await getVariables(this); - this.setState({ - variables: variablesArr - }); } ); } diff --git a/packages/amis-editor/src/renderer/FormulaControl.tsx b/packages/amis-editor/src/renderer/FormulaControl.tsx index 893519c3b..69b6cdd9a 100644 --- a/packages/amis-editor/src/renderer/FormulaControl.tsx +++ b/packages/amis-editor/src/renderer/FormulaControl.tsx @@ -187,10 +187,6 @@ export default class FormulaControl extends React.Component< async () => { this.appLocale = editorStore?.appLocale; this.appCorpusData = editorStore?.appCorpusData; - const variablesArr = await getVariables(this); - this.setState({ - variables: variablesArr - }); } ); } diff --git a/packages/amis-editor/src/renderer/TplFormulaControl.tsx b/packages/amis-editor/src/renderer/TplFormulaControl.tsx index 86f408a8e..4fa317a57 100644 --- a/packages/amis-editor/src/renderer/TplFormulaControl.tsx +++ b/packages/amis-editor/src/renderer/TplFormulaControl.tsx @@ -112,10 +112,6 @@ export class TplFormulaControl extends React.Component< async () => { this.appLocale = editorStore?.appLocale; this.appCorpusData = editorStore?.appCorpusData; - const variablesArr = await getVariables(this); - this.setState({ - variables: variablesArr - }); } ); diff --git a/packages/amis-editor/src/renderer/textarea-formula/TextareaFormulaControl.tsx b/packages/amis-editor/src/renderer/textarea-formula/TextareaFormulaControl.tsx index 54f204449..0b142e8cb 100644 --- a/packages/amis-editor/src/renderer/textarea-formula/TextareaFormulaControl.tsx +++ b/packages/amis-editor/src/renderer/textarea-formula/TextareaFormulaControl.tsx @@ -163,10 +163,6 @@ export class TextareaFormulaControl extends React.Component< async () => { this.appLocale = editorStore?.appLocale; this.appCorpusData = editorStore?.appCorpusData; - const variablesArr = await getVariables(this); - this.setState({ - variables: variablesArr - }); } );