fix(项目管理): 修复环境导入失败的缺陷

--bug=1037605 --user=王孝刚 【项目管理】环境管理-导入环境失败
https://www.tapd.cn/55049933/s/1479511
This commit is contained in:
wxg0103 2024-03-22 20:31:23 +08:00 committed by Craftsman
parent a0a2e389df
commit 95bb17f1d1
3 changed files with 13 additions and 10 deletions

View File

@ -227,13 +227,17 @@
align: 'center',
width: 200,
},
{
title: 'apiTestDebug.encode',
dataIndex: 'encode',
slotName: 'encode',
titleSlotName: 'encodeTitle',
width: 80,
},
...(innerParams.value.bodyType !== RequestBodyFormat.FORM_DATA
? [
{
title: 'apiTestDebug.encode',
dataIndex: 'encode',
slotName: 'encode',
titleSlotName: 'encodeTitle',
width: 80,
},
]
: []),
{
title: 'apiTestDebug.desc',
dataIndex: 'description',

View File

@ -113,10 +113,8 @@
emit('submit', true);
} else if (props.type === EnvAuthTypeEnum.ENVIRONMENT) {
await importEnv(params);
emit('submit', true);
}
fileList.value = [];
Message.success(t('common.importSuccess'));
handleCancel(true);
} catch (error) {

View File

@ -395,7 +395,8 @@
if (importAuthType.value === EnvAuthTypeEnum.GLOBAL && store.currentId === ALL_PARAM) {
globalEnvRef.value.initEnvDetail();
} else if (importAuthType.value === EnvAuthTypeEnum.ENVIRONMENT && store.currentId !== ALL_PARAM) {
globalEnvRef.value.initEnvDetail();
// eslint-disable-next-line no-use-before-define
initData();
}
}
};