Skip to content

Commit

Permalink
修复歌单分类标签列表无法打开的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Dec 8, 2023
1 parent e19002c commit a38df12
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/renderer/views/songList/List/components/TagList.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div :class="[$style.tagList, {[$style.active]: popupVisible}]">
<div ref="dom_btn" :class="$style.label" @click="handleShow">
<div ref="dom_btn" :class="$style.label" @click.stop="handleShow">
<span>{{ tagName }}</span>
<div :class="$style.icon">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" height="100%" viewBox="0 0 451.847 451.847" space="preserve">
Expand Down Expand Up @@ -98,9 +98,7 @@ const handleHide = (evt) => {
// if (e && e.target.parentNode != this.$refs.dom_popup && this.show) return this.show = false
// console.log(this.$refs)
if (evt && (evt.target == dom_btn.value || dom_btn.value?.contains(evt.target))) return
setTimeout(() => {
popupVisible.value = false
}, 50)
popupVisible.value = false
}
Expand Down

0 comments on commit a38df12

Please sign in to comment.