fix(项目管理): 修复环境导入失败的缺陷
--bug=1037605 --user=王孝刚 【项目管理】环境管理-导入环境失败 https://www.tapd.cn/55049933/s/1479511
This commit is contained in:
parent
a0a2e389df
commit
95bb17f1d1
|
@ -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',
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue