mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
task 命令支持给脚本传参,使用 -- 分割,后面的参数都会传给脚本
例如 task x.js -n whyour,脚本就能接收到参数 -n whyour
This commit is contained in:
@@ -76,7 +76,7 @@ const NotificationSetting = ({ data }: any) => {
|
||||
>
|
||||
{x.items ? (
|
||||
<Select
|
||||
placeholder={x.placeholder || `请选择${x.label}`}
|
||||
placeholder={x.placeholder || `${intl.get('请选择')} ${x.label}`}
|
||||
disabled={loading}
|
||||
>
|
||||
{x.items.map((y) => (
|
||||
@@ -89,7 +89,7 @@ const NotificationSetting = ({ data }: any) => {
|
||||
<Input.TextArea
|
||||
disabled={loading}
|
||||
autoSize={{ minRows: 1, maxRows: 5 }}
|
||||
placeholder={x.placeholder || `请输入${x.label}`}
|
||||
placeholder={x.placeholder || `${intl.get('请输入')} ${x.label}`}
|
||||
/>
|
||||
)}
|
||||
</Form.Item>
|
||||
|
||||
Reference in New Issue
Block a user