diff --git a/src/pages/env/index.tsx b/src/pages/env/index.tsx
index 303b6a4d..84bc0d07 100644
--- a/src/pages/env/index.tsx
+++ b/src/pages/env/index.tsx
@@ -25,7 +25,7 @@ import EditNameModal from './editNameModal';
import { DndProvider, useDrag, useDrop } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
import './index.less';
-import { getTableScroll } from '@/utils/index';
+import { exportJson, getTableScroll } from '@/utils/index';
const { Text, Paragraph } = Typography;
const { Search } = Input;
@@ -462,6 +462,13 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
});
};
+ const exportEnvs = () => {
+ const envs = value
+ .filter((x) => selectedRowIds.includes(x.id))
+ .map((x) => ({ value: x.value, name: x.name, remarks: x.remarks }));
+ exportJson('env.json', JSON.stringify(envs));
+ };
+
const modifyName = () => {
setIsEditNameModalVisible(true);
};
@@ -516,6 +523,13 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
>
批量删除
+