Browse Source

feat:暂存

lsw123 2 years ago
parent
commit
5f5c96730d
1 changed files with 3 additions and 7 deletions
  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>
             )}