refactor(接口测试): 修复样式修改带来的问题

--story=1010649 --user=郭雨琦
https://www.tapd.cn/55049933/prong/stories/view/1155049933001010649?url_cache_key=from_url_iteration_list_af1c2a348ba1b2cbec7f7734af247d0e&action_entry_type=stories
This commit is contained in:
guoyuqi 2023-01-09 19:10:30 +08:00 committed by fit2-zhao
parent f71158e327
commit 2ef10fc959
1 changed files with 3 additions and 0 deletions

View File

@ -672,6 +672,9 @@ export default {
this.request.body.kvs = requestKvs;
this.beforeRequest.body.kvs = beforeKvs
}
if (Object.keys(this.request.body).indexOf('type')) {
this.beforeRequest.body.type = this.request.body.type
}
let submitRequestBody = JSON.stringify(this.request.body);
let beforeRequestBody = JSON.stringify(this.beforeRequest.body);
if (submitRequestBody !== beforeRequestBody && !this.noShowSyncRuleRelation) {