F 修复任务状态变更时提示为删除的问题

pull/220/head
vapao 2020-10-10 10:30:18 +08:00
parent 3e09794b06
commit 643b83894c
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class ComTable extends React.Component {
handleActive = (text) => { handleActive = (text) => {
Modal.confirm({ Modal.confirm({
title: '删除确认', title: '操作确认',
content: `确定要${text.is_active ? '禁用' : '激活'}任务【${text['name']}】?`, content: `确定要${text.is_active ? '禁用' : '激活'}任务【${text['name']}】?`,
onOk: () => { onOk: () => {
return http.patch('/api/schedule/', {id: text.id, is_active: !text.is_active}) return http.patch('/api/schedule/', {id: text.id, is_active: !text.is_active})