From 1fc63ee04583939b1f1d41de462c5fc388e7ec0b Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 27 Oct 2022 13:44:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dxml=E6=96=AD=E8=A8=80=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=B7=BB=E5=8A=A0=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019004 --user=王孝刚 【接口测试】文档结构断言-xml断言,无法手动添加正确的断言 https://www.tapd.cn/55049933/s/1279977 --- .../components/assertion/document/DocumentBody.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue b/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue index 586563e6a6..43b7510e8c 100644 --- a/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue +++ b/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue @@ -34,7 +34,10 @@ v-if="(scope.row.status && scope.column.fixed && scope.row.id!=='root') || (scope.row.type !=='object' && !scope.row.name)" v-model="scope.row.name" style="width: 140px" size="mini" :placeholder="$t('api_test.definition.request.esb_table.name')"/> - {{ scope.row.name }} + @@ -621,8 +624,8 @@ export default { }, removeTableRow(row) { - this.removeVerSet(this.mapData.get(row.parentId), row); - this.removeFromDataStruct(this.mapData.get(row.parentId), row); + this.removeVerSet(this.mapData.get(row.parentId) ? this.mapData.get(row.parentId) : this.tableData, row); + this.removeFromDataStruct(this.mapData.get(row.parentId) ? this.mapData.get(row.parentId) : this.tableData, row); }, removeFromDataStruct(dataStruct, row) { if (dataStruct == null || dataStruct.length === 0) {