fix: 解决若干缺陷1007824,1007707,1007880
This commit is contained in:
parent
1b161e3cac
commit
4558beb2ef
|
@ -67,10 +67,11 @@ export default {
|
||||||
this.data = {};
|
this.data = {};
|
||||||
try {
|
try {
|
||||||
// 解决精度丢失问题
|
// 解决精度丢失问题
|
||||||
let stringedJSON = objStr.replace(/:\s*([-+Ee0-9.]+)/g, ': "$1"');
|
// let stringedJSON = objStr.replace(/:\s*([-+Ee0-9.]+)/g, ': "$1"');
|
||||||
let param = JSON.parse(stringedJSON);
|
// 一些情况会解析失败,先注释掉
|
||||||
|
let param = JSON.parse(objStr);
|
||||||
if (param instanceof Array) {
|
if (param instanceof Array) {
|
||||||
this.$warning(this.$t('api_test.request.assertions.json_path_err'));
|
this.$warning('不支持解析JSON数组');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.data = param;
|
this.data = param;
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
<el-form-item :label="'Tapd 昵称'" prop="account">
|
<el-form-item :label="'Tapd 昵称'" prop="account">
|
||||||
<el-input v-model="data.tapdUserName" :placeholder="$t('organization.integration.input_api_account')"/>
|
<el-input v-model="data.tapdUserName" :placeholder="$t('organization.integration.input_api_account')"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item >
|
<!-- <el-form-item >-->
|
||||||
<el-button type="primary" style="float: right" @click="$emit('auth', 'Tapd')" size="mini">
|
<!-- <el-button type="primary" style="float: right" @click="$emit('auth', 'Tapd')" size="mini">-->
|
||||||
{{$t('commons.validate')}}
|
<!-- {{$t('commons.validate')}}-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -517,17 +517,13 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.container >>> .el-card__body {
|
.container >>> .el-card__body {
|
||||||
height: calc(100vh - 50px);
|
height: calc(100vh - 60px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-card >>> .el-card__header {
|
.comment-card >>> .el-card__header {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-card >>> .el-card__body {
|
|
||||||
height: calc(100vh - 100px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.case_container > .el-row {
|
.case_container > .el-row {
|
||||||
margin-top: 1%;
|
margin-top: 1%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue