修复任务详情展示脚本逻辑

This commit is contained in:
whyour 2022-03-13 13:21:00 +08:00
parent 51afcb6c5b
commit be597355a7

View File

@ -132,6 +132,7 @@ const CronDetailModal = ({
const getScript = () => {
const cmd = cron.command.split(' ') as string[];
if (cmd[0] === 'task') {
setValidTabs(validTabs);
if (cmd[1].startsWith('/ql/data/scripts')) {
cmd[1] = cmd[1].replace('/ql/data/scripts/', '');
}