From 176c6e1da22e96a1110fa91f8fc8eb8ad2881e08 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 08 八月 2022 18:13:37 +0800 Subject: [PATCH] 2022-08-08 --- src/menu/components/form/formaction/actionform/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu/components/form/formaction/actionform/index.jsx b/src/menu/components/form/formaction/actionform/index.jsx index dacfdd8..306130a 100644 --- a/src/menu/components/form/formaction/actionform/index.jsx +++ b/src/menu/components/form/formaction/actionform/index.jsx @@ -192,7 +192,7 @@ getFields() { const { getFieldDecorator } = this.props.form - const { interType } = this.state + const { interType, callbackType } = this.state const fields = [] this.state.formlist.forEach((item, index) => { @@ -219,7 +219,7 @@ message: formRule.func.maxMessage }] } else if (item.key === 'output') { - if (interType === 'system') { + if (interType === 'system' || ((interType === 'outer' || interType === 'custom') && callbackType === 'script')) { _rules = [{ pattern: /^@[0-9a-zA-Z_]+@?$/, message: '鍙橀噺浠绗﹀紑澶达紝鍙娇鐢ㄥ瓧姣嶃�佹暟瀛椾互鍙奯' -- Gitblit v1.8.0