定时任务增加 work_dir 设置

This commit is contained in:
whyour
2026-06-07 13:19:01 +08:00
parent 865e3035b9
commit fd6b4e4cde
5 changed files with 82 additions and 2 deletions
+9
View File
@@ -229,6 +229,15 @@ const CronModal = ({
maxLength={200}
/>
</Form.Item>
<Form.Item
name="work_dir"
label={intl.get('工作目录')}
tooltip={intl.get(
'脚本执行时的工作目录,留空则自动检测。相对路径基于 scripts 目录,也支持绝对路径',
)}
>
<Input placeholder={intl.get('留空自动检测,或输入相对/绝对路径')} />
</Form.Item>
<Form.Item
name="task_before"
label={intl.get('执行前')}