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 = {}; 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;

View File

@ -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>

View File

@ -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%;
} }