fix: 解决若干缺陷1007824,1007707,1007880

This commit is contained in:
chenjianxing 2021-11-15 17:26:27 +08:00 committed by jianxing
parent 1b161e3cac
commit 4558beb2ef
3 changed files with 10 additions and 13 deletions

View File

@ -67,10 +67,11 @@ export default {
this.data = {};
try {
//
let stringedJSON = objStr.replace(/:\s*([-+Ee0-9.]+)/g, ': "$1"');
let param = JSON.parse(stringedJSON);
// let stringedJSON = objStr.replace(/:\s*([-+Ee0-9.]+)/g, ': "$1"');
//
let param = JSON.parse(objStr);
if (param instanceof Array) {
this.$warning(this.$t('api_test.request.assertions.json_path_err'));
this.$warning('不支持解析JSON数组');
return;
}
this.data = param;

View File

@ -10,11 +10,11 @@
<el-form-item :label="'Tapd 昵称'" prop="account">
<el-input v-model="data.tapdUserName" :placeholder="$t('organization.integration.input_api_account')"/>
</el-form-item>
<el-form-item >
<el-button type="primary" style="float: right" @click="$emit('auth', 'Tapd')" size="mini">
{{$t('commons.validate')}}
</el-button>
</el-form-item>
<!-- <el-form-item >-->
<!-- <el-button type="primary" style="float: right" @click="$emit('auth', 'Tapd')" size="mini">-->
<!-- {{$t('commons.validate')}}-->
<!-- </el-button>-->
<!-- </el-form-item>-->
</el-form>
</template>

View File

@ -517,17 +517,13 @@ export default {
}
.container >>> .el-card__body {
height: calc(100vh - 50px);
height: calc(100vh - 60px);
}
.comment-card >>> .el-card__header {
padding: 0 20px;
}
.comment-card >>> .el-card__body {
height: calc(100vh - 100px);
}
.case_container > .el-row {
margin-top: 1%;
}