mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复任务详情展示脚本逻辑
This commit is contained in:
parent
51afcb6c5b
commit
be597355a7
|
@ -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/', '');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user