fix(项目管理): 修复环境导入失败的缺陷
--bug=1037605 --user=王孝刚 【项目管理】环境管理-导入环境失败 https://www.tapd.cn/55049933/s/1479511
This commit is contained in:
parent
a0a2e389df
commit
95bb17f1d1
|
@ -227,6 +227,8 @@
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 200,
|
width: 200,
|
||||||
},
|
},
|
||||||
|
...(innerParams.value.bodyType !== RequestBodyFormat.FORM_DATA
|
||||||
|
? [
|
||||||
{
|
{
|
||||||
title: 'apiTestDebug.encode',
|
title: 'apiTestDebug.encode',
|
||||||
dataIndex: 'encode',
|
dataIndex: 'encode',
|
||||||
|
@ -234,6 +236,8 @@
|
||||||
titleSlotName: 'encodeTitle',
|
titleSlotName: 'encodeTitle',
|
||||||
width: 80,
|
width: 80,
|
||||||
},
|
},
|
||||||
|
]
|
||||||
|
: []),
|
||||||
{
|
{
|
||||||
title: 'apiTestDebug.desc',
|
title: 'apiTestDebug.desc',
|
||||||
dataIndex: 'description',
|
dataIndex: 'description',
|
||||||
|
|
|
@ -113,10 +113,8 @@
|
||||||
emit('submit', true);
|
emit('submit', true);
|
||||||
} else if (props.type === EnvAuthTypeEnum.ENVIRONMENT) {
|
} else if (props.type === EnvAuthTypeEnum.ENVIRONMENT) {
|
||||||
await importEnv(params);
|
await importEnv(params);
|
||||||
emit('submit', true);
|
|
||||||
}
|
}
|
||||||
fileList.value = [];
|
fileList.value = [];
|
||||||
|
|
||||||
Message.success(t('common.importSuccess'));
|
Message.success(t('common.importSuccess'));
|
||||||
handleCancel(true);
|
handleCancel(true);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -395,7 +395,8 @@
|
||||||
if (importAuthType.value === EnvAuthTypeEnum.GLOBAL && store.currentId === ALL_PARAM) {
|
if (importAuthType.value === EnvAuthTypeEnum.GLOBAL && store.currentId === ALL_PARAM) {
|
||||||
globalEnvRef.value.initEnvDetail();
|
globalEnvRef.value.initEnvDetail();
|
||||||
} else if (importAuthType.value === EnvAuthTypeEnum.ENVIRONMENT && store.currentId !== ALL_PARAM) {
|
} 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