From 81e426e19db140e630f45409c1569fe16dbcc33f Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期二, 18 五月 2021 15:25:19 +0800
Subject: [PATCH] 修复点击弹窗bug
---
src/components/panel/RightSearchPanel.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/components/panel/RightSearchPanel.vue b/src/components/panel/RightSearchPanel.vue
index fd8749e..d4d40f3 100644
--- a/src/components/panel/RightSearchPanel.vue
+++ b/src/components/panel/RightSearchPanel.vue
@@ -217,11 +217,15 @@
mounted () {
const that = this
bus.$on('changeSearchBar', function (obj) {
- // console.log(obj.checked, obj.name)
that.gcComp = ''
that.topicList.forEach((item) => {
if (item.name === obj.name) {
- item.isShow = obj.checked
+ if (obj.type > 0) {
+ item.isShow = true
+ } else {
+ item.isShow = false
+ }
+ // item.isShow = obj.checked
if (item.isShow) {
that.selected(item)
} else {
@@ -230,6 +234,7 @@
}
})
})
+ // console.log(that.topicList)
}
}
</script>
@@ -323,7 +328,7 @@
color: @color-tool;
position: absolute;
top: 24px;
- right: 0.02rem;
+ left: 0.02rem;
border: none; //1px solid @color-tool;
width: 0.2rem;
height: 0.2rem;
--
Gitblit v1.8.0