mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 12:23:29 +08:00
修复任务详情查看脚本错误
This commit is contained in:
@@ -110,7 +110,7 @@ const CronDetailModal = ({
|
||||
minimap: { enabled: false },
|
||||
lineNumbersMinChars: 3,
|
||||
glyphMargin: false,
|
||||
accessibilitySupport: 'off'
|
||||
accessibilitySupport: 'off',
|
||||
}}
|
||||
onMount={(editor, monaco) => {
|
||||
editorRef.current = editor;
|
||||
@@ -162,8 +162,9 @@ const CronDetailModal = ({
|
||||
setValue(data);
|
||||
}
|
||||
});
|
||||
} else if (result) {
|
||||
} else {
|
||||
setValidTabs([validTabs[0]]);
|
||||
setActiveTabKey('log');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -359,10 +360,15 @@ const CronDetailModal = ({
|
||||
<Modal
|
||||
title={
|
||||
<div className="crontab-title-wrapper">
|
||||
<div style={{ minWidth: 0 }}>
|
||||
<div style={{ minWidth: 0, display: 'flex', alignItems: 'center' }}>
|
||||
<Typography.Text
|
||||
style={{ width: '100%' }}
|
||||
ellipsis={{ tooltip: currentCron.name }}
|
||||
style={{ width: 200, boxSizing: 'content-box' }}
|
||||
ellipsis={{
|
||||
onEllipsis(ellipsis) {
|
||||
return ellipsis;
|
||||
},
|
||||
tooltip: currentCron.name,
|
||||
}}
|
||||
>
|
||||
{currentCron.name}
|
||||
</Typography.Text>
|
||||
|
||||
Reference in New Issue
Block a user