mirror of https://github.com/openspug/spug
F 修复任务状态变更时提示为删除的问题
parent
3e09794b06
commit
643b83894c
|
@ -84,7 +84,7 @@ class ComTable extends React.Component {
|
|||
|
||||
handleActive = (text) => {
|
||||
Modal.confirm({
|
||||
title: '删除确认',
|
||||
title: '操作确认',
|
||||
content: `确定要${text.is_active ? '禁用' : '激活'}任务【${text['name']}】?`,
|
||||
onOk: () => {
|
||||
return http.patch('/api/schedule/', {id: text.id, is_active: !text.is_active})
|
||||
|
|
Loading…
Reference in New Issue