diff --git a/framework/sdk-parent/frontend/src/components/new-ui/MsInputTag.vue b/framework/sdk-parent/frontend/src/components/new-ui/MsInputTag.vue new file mode 100644 index 0000000000..b630967a66 --- /dev/null +++ b/framework/sdk-parent/frontend/src/components/new-ui/MsInputTag.vue @@ -0,0 +1,244 @@ + + + + + diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index db6581e7c2..86637931b2 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -1216,7 +1216,9 @@ export default { } param.name = param.name.trim(); if (this.form.tags instanceof Array) { - this.form.tags = JSON.stringify(this.form.tags); + param.tags = JSON.stringify(this.form.tags); + } else { + param.tags = this.form.tags } //当 testId 为其他信息的时候必须删除该字段避免后端反序列化报错 if ("other" != this.form.selected) { @@ -1224,7 +1226,6 @@ export default { } else { delete param.selected; } - param.tags = this.form.tags; param.casePublic = this.casePublic; param.type = "functional"; buildCustomFields(this.form, param, this.testCaseTemplate); diff --git a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue index d37ee977f4..57517d0709 100644 --- a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue +++ b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue @@ -335,7 +335,7 @@ import {getProjectVersions} from "metersphere-frontend/src/api/version"; import { hasLicense } from "metersphere-frontend/src/utils/permission"; import MsFormDivider from "metersphere-frontend/src/components/MsFormDivider"; import MsSelectTree from "metersphere-frontend/src/components/select-tree/SelectTree"; -import MsInputTag from "metersphere-frontend/src/components/MsInputTag"; +import MsInputTag from "metersphere-frontend/src/components/new-ui/MsInputTag"; import CustomFiledFormRow from "./CaseCustomFiledFormRow"; import { useStore } from "@/store"; import BaseEditItemComponent from "../BaseEditItemComponent";