feat: 移除插件内收藏栏

This commit is contained in:
ZiuChen
2022-09-17 19:58:50 +08:00
parent a1e627ae5b
commit cce8116bb1
3 changed files with 12 additions and 20 deletions

View File

@@ -156,9 +156,7 @@ const textFilterCallBack = (item) => {
const updateShowList = (type) => {
// 更新显示列表
showList.value = list.value
.filter((item) =>
type === 'collect' ? item.collect === true : type === 'all' ? item : item.type === type
) // 是 collect则返回所有收藏 否则按照 type返回
.filter((item) => (type === 'all' ? item : item.type === type)) // 是 all则返回所有 否则按照 type返回
.filter((item) => (filterText.value ? item.type !== 'image' : item)) // 有过滤词 排除掉图片 DataURL
.filter((item) => textFilterCallBack(item))
.slice(0, GAP) // 重新切分懒加载列表