2cd9b2b1 by xukangle

fix

1 parent 7f57de30
......@@ -46,7 +46,7 @@ const getCgDirTreeData = async () => {
const params = {
execGuid: execGuidInfo.value?.execGuid
}
if (!execGuidInfo.value?.execGuid || !execGuidInfo.value?.execGuid) {
if (!execGuidInfo.value?.execGuid) {
treeInfo.value.loading = false;
return;
}
......@@ -146,11 +146,10 @@ const getFieldTypeData = async () => {
onMounted(async () => {
await getExecGuid();
if (!execGuidInfo.value?.execGuid) {
return;
}
await getCgDirTreeData();
await getCgDirFieldPage({
execGuid: execGuidInfo.value?.execGuid,
classifyDetail: classifyDetailGuidInfo.value
});
// getDictionaryList();
getSearchTableList();
// getLabelListData();
......@@ -1229,6 +1228,9 @@ const handleClick = async (tab: any) => {
// 切换时选中的配置业务规则清空
selectedRulesData.value = {};
activeName.value = tab.props.name;
if (!execGuidInfo.value?.execGuid) {
return;
}
if (tab.props.name === 'second') {
classifyDetailGuidInfo.value = '';
// if (activeTab.value === 'table') {
......@@ -1274,7 +1276,7 @@ const dataBaseTreeData = ref<any>();
const getDataBaseTreeData = async () => {
dataBaseTreeInfo.value.loading = true;
const res: any = await getDbDirTreeList({});
if (res.data.length === 0 || !res.data) {
if (!res.data) {
dataBaseTreeInfo.value.loading = false;
return;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!