浏览代码

feat:暂存

lsw123 2 年之前
父节点
当前提交
5f5c96730d
共有 1 个文件被更改,包括 3 次插入7 次删除
  1. 3 7
      src/module/datasource/page/DatasourceView.jsx

+ 3 - 7
src/module/datasource/page/DatasourceView.jsx

@@ -28,12 +28,12 @@ export default function DatasourceView() {
   const [currentLogPage, setCurrentLogPage] = useState(1)
   const [currentLogPageSize, setCurrentLogPageSize] = useState(10)
   // 导入数据表
-  const [importData, setImportData] = useState(false)
+  const [isImportData, setImportData] = useState(false)
   const importTable = async () => {}
   const importModal = (
     <Modal
       title="导入数据表"
-      visible="importData"
+      visible=" isImportData"
       onOk={importTable}
       okText="确认导入"
       onCancel={() => {
@@ -108,11 +108,7 @@ export default function DatasourceView() {
               </Button>
             )}
             {currentDataType === 'datalake' && (
-              <Button
-                type="primary"
-                onclick={() => {
-                  setImportData(true)
-                }}>
+              <Button type="primary" onclick={() => {}}>
                 导入数据表
               </Button>
             )}