Skip to content

Commit

Permalink
修复编辑计划任务的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dushixiang committed May 21, 2022
1 parent f611f9d commit 4ff4d37
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/src/components/devops/Job.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,15 @@ class Job extends Component {
});
};

showModal(title, obj = null) {
showModal = async (title, obj = null) => {
if (obj['id']) {
let result = await request.get(`/jobs/${obj['id']}`);
if (result.code !== 1) {
message.error(result.message);
return;
}
obj = result.data;
}
if (obj['func'] === 'shell-job') {
obj['shell'] = JSON.parse(obj['metadata'])['shell'];
}
Expand Down

0 comments on commit 4ff4d37

Please sign in to comment.