修复弹出数据不重置

This commit is contained in:
hanhh
2021-06-27 00:19:48 +08:00
parent 9f5c8fa70a
commit 0a6c7e3719
5 changed files with 25 additions and 28 deletions
+3 -3
View File
@@ -274,7 +274,7 @@ const Env = () => {
title: '确认删除',
content: (
<>
Env{' '}
{' '}
<Text style={{ wordBreak: 'break-all' }} type="warning">
{record.value}
</Text>{' '}
@@ -365,7 +365,7 @@ const Env = () => {
const delEnvs = () => {
Modal.confirm({
title: '确认删除',
content: <>Env吗</>,
content: <></>,
onOk() {
request
.delete(`${config.apiPrefix}envs`, { data: selectedRowIds })
@@ -388,7 +388,7 @@ const Env = () => {
const operateEnvs = (operationStatus: number) => {
Modal.confirm({
title: `确认${OperationName[operationStatus]}`,
content: <>{OperationName[operationStatus]}Env吗</>,
content: <>{OperationName[operationStatus]}</>,
onOk() {
request
.put(`${config.apiPrefix}envs/${OperationPath[operationStatus]}`, {