|
@@ -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>
|
|
|
)}
|