Commit 72a097a7 by zhaochengxiang

模型创建给提示

parent 0a1c8d80
......@@ -5,7 +5,7 @@ import ModelTree from './Component/ModelTree';
import ModelTable from './Component/ModelTable';
import ImportModal from './Component/ImportModal';
import ExportModal from './Component/ExportModal';
import { showMessage } from '../../../util';
import { dispatchLatest } from '../../../model';
class Model extends React.Component {
......@@ -49,6 +49,12 @@ class Model extends React.Component {
}
onImportBtnClick = () => {
const { catalogId } = this.state;
if (!catalogId || catalogId==='') {
showMessage('info', '请先选择目录');
return;
}
this.setState({ importModalVisible: true, importModalAction: 'add' });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment