From 002d57f40a9ae4a1032ef9a50c2bcb91269e3d1e Mon Sep 17 00:00:00 2001 From: Himit_ZH <372347736@qq.com> Date: Sun, 25 Jul 2021 11:01:31 +0800 Subject: [PATCH] debug fe --- hoj-vue/src/views/admin/problem/Problem.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hoj-vue/src/views/admin/problem/Problem.vue b/hoj-vue/src/views/admin/problem/Problem.vue index a261f7d8..5b3ed7fb 100644 --- a/hoj-vue/src/views/admin/problem/Problem.vue +++ b/hoj-vue/src/views/admin/problem/Problem.vue @@ -955,9 +955,12 @@ export default { } }, - // 根据tagID从题目的tags列表中移除 + // 根据tag name从题目的tags列表中移除 closeTag(tag) { - this.problemTags.splice(this.problemTags.indexOf(tag), 1); + this.problemTags.splice( + this.problemTags.map((item) => item.name).indexOf(tag), + 1 + ); }, problemTypeChange(type) {