From f5a16e4534b815471fdd22edab89a010d492c4aa Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 28 十月 2022 20:13:44 +0800 Subject: [PATCH] 修复使用透明底png图片时,自动填充黑色背景 --- src/views/system/menu/index.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 17ecf3f..f6b118f 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -375,8 +375,12 @@ showChooseIcon.value = false; } /** 鍥炬爣澶栧眰鐐瑰嚮闅愯棌涓嬫媺鍒楄〃 */ -function hideSelectIcon() { - showChooseIcon.value = false; +function hideSelectIcon(event) { + var elem = event.relatedTarget || event.srcElement || event.target || event.currentTarget; + var className = elem.className; + if (className !== "el-input__inner") { + showChooseIcon.value = false; + } } /** 鎼滅储鎸夐挳鎿嶄綔 */ function handleQuery() { -- Gitblit v1.9.3