From ebc898a325011c370eeef5c412f3dcc611eeeb48 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Thu, 14 Jul 2022 19:02:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9C=BA=E6=99=AF=E5=8F=98=E9=87=8F=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=BB=98=E8=AE=A4=E5=80=BC=20(#15807)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014897 --user=王孝刚 【接口测试】github#15806,场景变量,没有默认类型,点击添加时建议给个提示 https://www.tapd.cn/55049933/s/1202295 Co-authored-by: wxg0103 <727495428@qq.com> --- .../api/automation/scenario/variable/VariableList.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue index e7e76aece3..85c5c9656b 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue @@ -169,10 +169,7 @@ import {REQUEST_HEADERS} from "@/common/js/constants"; import MsTable from "@/business/components/common/components/table/MsTable"; import MsTableColumn from "@/business/components/common/components/table/MsTableColumn"; -import { - getCustomTableWidth, - getCustomTableHeader -} from "@/common/js/tableUtils"; +import {getCustomTableHeader, getCustomTableWidth} from "@/common/js/tableUtils"; const jsondiffpatch = require('jsondiffpatch'); @@ -218,7 +215,7 @@ export default { total: 0, headerSuggestions: REQUEST_HEADERS, disabled: false, - selectType: "", + selectType: "CONSTANT", showDelete: false, tableHeaderKey: "VARIABLE_LIST_TABLE", fields: getCustomTableHeader('VARIABLE_LIST_TABLE'), @@ -503,7 +500,7 @@ export default { } }); }, - onChange(){ + onChange() { this.selection = []; this.sortParameters(); },