fix(接口测试): 修复导入页面保留swagger上次配置参数记录问题
--bug=1021412--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021412
This commit is contained in:
parent
b15910316e
commit
648cc80439
|
@ -10,7 +10,7 @@
|
|||
:destroy-on-close="true">
|
||||
<div class="header-bar">
|
||||
<div>{{ $t('api_test.api_import.data_format') }}</div>
|
||||
<el-radio-group v-model="selectedPlatformValue">
|
||||
<el-radio-group v-model="selectedPlatformValue" @input="clearUrParameter">
|
||||
<span v-for="(item, index) in platforms" :key="index">
|
||||
<el-radio v-if="!isScenarioModel || item.name != 'Swagger'" :label="item.value">{{ item.name }}</el-radio>
|
||||
</span>
|
||||
|
@ -476,6 +476,12 @@ export default {
|
|||
this.clearAuthInfo();
|
||||
}
|
||||
},
|
||||
clearUrParameter(value) {
|
||||
if (value !== 'Swagger2') {
|
||||
this.clearAuthInfo();
|
||||
this.authEnable = false;
|
||||
}
|
||||
},
|
||||
buildParam() {
|
||||
let param = {};
|
||||
Object.assign(param, this.formData);
|
||||
|
|
Loading…
Reference in New Issue