Commit 2fe4f24f by zhaochengxiang

bug fix

parent 4005b344
......@@ -6,7 +6,7 @@ import { ExclamationCircleFilled } from '@ant-design/icons';
import DataGrid, { defaultPageSize } from '../../VirtualTable';
import { dispatch } from '../../../../model';
import { showMessage, getQueryParam, isSzseEnv, formatDate } from '../../../../util';
import { AnchorId, AnchorTimestamp, Action, CatalogId, ModelerId } from '../../../../util/constant';
import { AnchorId, AnchorTimestamp, Action, CatalogId, ModelerId, BranchId } from '../../../../util/constant';
import ExpandedModelTable from "./ExpandedModelTable";
import { useContextMenu, Menu as RcMenu, Item as RcItem } from "react-contexify";
import PermissionRcItem from '../../../../util/Component/PermissionRcItem';
......@@ -641,7 +641,11 @@ const ModelTable = (props) => {
} else if (key === 'history') {
historyItem(currentItem);
} else if (key === 'copy') {
window.open(`/data-govern/data-model-action?${Action}=add&${CatalogId}=${(view==='dir')?(catalogId||''):''}&${ModelerId}=${currentItem.id}`);
if (view !== 'branch') {
window.open(`/data-govern/data-model-action?${Action}=add&${CatalogId}=${(view==='dir')?(catalogId||''):''}&${ModelerId}=${currentItem.id}`);
} else {
window.open(`/data-govern/data-model-action?${Action}=add&${BranchId}=${catalogId??''}&${ModelerId}=${currentItem.id}`);
}
} else if (key === 'createTable') {
deployAction(currentItem);
} else if (key.indexOf('action') !== -1) {
......
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