Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全文搜索结果不显示分类结果 #39

Open
409915016 opened this issue Nov 22, 2020 · 0 comments
Open

全文搜索结果不显示分类结果 #39

409915016 opened this issue Nov 22, 2020 · 0 comments
Assignees
Labels
bug 确认的问题 filmy 相册
Milestone

Comments

@409915016
Copy link
Owner

409915016 commented Nov 22, 2020

可以搜索到关键词对应的相册,但分类内容一直显示为空,控制台报错

TypeError: category.getCacheData is not a function

先前因为重写了搜索相关功能

.then(result => result.map(n => new Category(n._key, n))),

该代码会导致重新建立 Category 分类模型,导致本地数据库膨胀,所以删除了这行代码。

那么 Promise 异步返回的 Category 查询结果用在 <Content> 组件,该组件接收的是 Model 对象并非搜索内容,所以:

this.categories = categories.map(n => n)
@409915016 409915016 changed the title 全文搜索不到分类内容 全文搜索结果不显示分类结果 Nov 22, 2020
@409915016 409915016 self-assigned this Nov 22, 2020
@409915016 409915016 added the bug 确认的问题 label Nov 22, 2020
@409915016 409915016 added this to the v1.0.0 milestone Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 确认的问题 filmy 相册
Projects
None yet
Development

No branches or pull requests

1 participant