From 8b2a395c16ffd1e1e903fc75cf1cc6d9a4f45f53 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Tue, 27 Aug 2024 13:50:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BB=A3=E7=A0=81=E6=B5=8B=E8=AF=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20sws=202024-08-26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/upload/index.vue | 8 ++++++-- .../model-user-info/model-user-info-content.vue | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/common/upload/index.vue b/src/components/common/upload/index.vue index b21f3061..1a322fd1 100644 --- a/src/components/common/upload/index.vue +++ b/src/components/common/upload/index.vue @@ -297,6 +297,10 @@ watch( get_tree(); // 获取附件列表 get_attachment_list(); + + icon_value.value = ''; + temp_icon_value.value = ''; + icon_index.value = -1; } } } @@ -591,7 +595,7 @@ const icon_value = defineModel('iconValue', { type: String, default: '' }); const temp_icon_value = ref(''); const search_icon = ref(''); const icon_list = computed(() => searchIcons.glyphs.filter((item) => item.name.includes(search_icon.value))); -const icon_index = ref(0); +const icon_index = ref(-1); const handle_select_icon = (item: any, index: number) => { icon_index.value = index; temp_icon_value.value = item.font_class; @@ -622,7 +626,7 @@ const confirm_event = () => { if (view_list_value.value.length > 0) { icon_value.value = ''; temp_icon_value.value = ''; - icon_index.value = 0; + icon_index.value = -1; } else { icon_value.value = JSON.parse(JSON.stringify(temp_icon_value.value)); } diff --git a/src/components/model-user-info/model-user-info-content.vue b/src/components/model-user-info/model-user-info-content.vue index f664d6d9..f71e73f4 100644 --- a/src/components/model-user-info/model-user-info-content.vue +++ b/src/components/model-user-info/model-user-info-content.vue @@ -15,7 +15,7 @@