From 4225ac6544b7372b1e4838931ca51aa47788d166 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Fri, 26 Aug 2022 17:55:42 +0800 Subject: [PATCH] fix issue --- web_src/js/components/dataset/referenceDataset.vue | 10 ++++++---- web_src/js/features/i18nVue.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/web_src/js/components/dataset/referenceDataset.vue b/web_src/js/components/dataset/referenceDataset.vue index 85501bfbf..723e07804 100644 --- a/web_src/js/components/dataset/referenceDataset.vue +++ b/web_src/js/components/dataset/referenceDataset.vue @@ -481,10 +481,12 @@ export default { } }, changeCheckSelected(checked, item) { - let index = this.selectDatasetArray.findIndex((element) => { - return element.ID === item.ID; - }); - this.selectDatasetArray.splice(index, 1); + if (!checked) { + let index = this.selectDatasetArray.findIndex((element) => { + return element.ID === item.ID; + }); + this.selectDatasetArray.splice(index, 1); + } }, postStar(item, isSigned) { if (!isSigned) { diff --git a/web_src/js/features/i18nVue.js b/web_src/js/features/i18nVue.js index 64067856c..05932854a 100644 --- a/web_src/js/features/i18nVue.js +++ b/web_src/js/features/i18nVue.js @@ -156,7 +156,7 @@ export const i18nVue = { dataset_link_success: "Linked dataset succeeded!", dataset_link_failed: "Linked dataset Failed!", dataset_over_nums: "Linked over ? datasets!", - cancel_link_dataset: "Cancel Linked dataset ? succeeded!", + cancel_link_dataset: "Cancel Linked dataset ? succeeded!", image_label: "Image", image_select_placeholder: "Select image or input image url", image_select: "Select Image",