diff --git a/api-test/frontend/src/business/history/tags/MsInputTag.vue b/api-test/frontend/src/business/history/tags/MsInputTag.vue index d376e979f4..2452817a09 100644 --- a/api-test/frontend/src/business/history/tags/MsInputTag.vue +++ b/api-test/frontend/src/business/history/tags/MsInputTag.vue @@ -47,6 +47,7 @@ export default { watch: { innerTags() { this.data[this.prop] = this.innerTags; + this.tagChange(); }, }, methods: { diff --git a/framework/sdk-parent/frontend/src/components/MsInputTag.vue b/framework/sdk-parent/frontend/src/components/MsInputTag.vue index e734845e2b..ade0f5b5af 100644 --- a/framework/sdk-parent/frontend/src/components/MsInputTag.vue +++ b/framework/sdk-parent/frontend/src/components/MsInputTag.vue @@ -76,6 +76,7 @@ export default { watch: { innerTags() { this.currentScenario[this.prop] = this.innerTags; + this.tagChange(); }, 'currentScenario.tags'() { if (this.prop === 'tags') { diff --git a/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue b/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue index 45483f7fc2..1c96c8120e 100644 --- a/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue +++ b/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue @@ -55,6 +55,7 @@ export default { watch: { innerTags() { this.data[this.prop] = this.innerTags; + this.tagChange(); } }, methods: { diff --git a/framework/sdk-parent/frontend/src/utils/tableUtils.js b/framework/sdk-parent/frontend/src/utils/tableUtils.js index 4ea24f6109..9b29bcf7f0 100644 --- a/framework/sdk-parent/frontend/src/utils/tableUtils.js +++ b/framework/sdk-parent/frontend/src/utils/tableUtils.js @@ -569,7 +569,9 @@ export function getCustomFieldValue(row, field, members) { * @returns {*[]|*} */ export function parseMultipleInputToArray(mulInputStr) { - if (mulInputStr.indexOf(",")) { + if (mulInputStr instanceof Array) { + return mulInputStr; + } else if (mulInputStr.indexOf(",")) { return mulInputStr.split(",") } else if (mulInputStr.indexOf(";")) { return mulInputStr.split(";") diff --git a/test-track/frontend/src/business/issue/IssueEditDetail.vue b/test-track/frontend/src/business/issue/IssueEditDetail.vue index 64e4e60482..62d0d0fe24 100644 --- a/test-track/frontend/src/business/issue/IssueEditDetail.vue +++ b/test-track/frontend/src/business/issue/IssueEditDetail.vue @@ -560,11 +560,16 @@ export default { let param = this.buildPram(); this.parseOldFields(param); let option = this.getOption(param); - saveOrUpdateIssue(option.url, option.data).then((response) => { - this.$emit('close'); - this.$success(this.$t('commons.save_success')); - this.$emit('refresh', response.data); - }) + this.result.loading = true; + saveOrUpdateIssue(option.url, option.data) + .then((response) => { + this.$emit('close'); + this.$success(this.$t('commons.save_success')); + this.$emit('refresh', response.data); + this.result.loading = false; + }).catch(() => { + this.result.loading = false; + }); }, parseOldFields(param) { let customFieldsStr = param.customFields;