Commit 18296ed9 authored by KesaubeEire's avatar KesaubeEire

feat: 分类搜索 & Tag 搜索 in 侧边栏 & 导航栏.

parent 25eeb5db
......@@ -70,15 +70,15 @@ npm run build:prod
- [x] Tag
- [x] Category
- [x] Title
- [ ] TODO: 导航栏 Drawer -> 分类搜索 & Tag 搜索
- [ ] TODO: 侧边栏 Drawer -> 分类搜索 & Tag 搜索
- [x] 导航栏 Drawer -> 分类搜索 & Tag 搜索
- [x] 侧边栏 Drawer -> 分类搜索 & Tag 搜索
- [ ] TODO: 回退上一级搜索
- [x] 主题切换
- [x] 基础切换
- [x] localstorage 记忆
- [ ] Toast 系统
- [x] 基本 Toast
- [ ] TODO: 图片加载错误: 显示名字 & 序号...
- [x] 图片加载错误: 寻找 info.json 的图片并加载第一个, 顺表 log 显示详情
## Bugs
......
This diff is collapsed.
......@@ -122,7 +122,7 @@
/**根据 TAG 搜索游戏
* @param {string} tag TAG
*/
function searchTag(tag) {
export function searchTag(tag) {
if (process.env.APP_ENV === 'dev') console.log(tag, encodeURIComponent(tag));
createFetch(searchTagRequest(tag), data => {
if (process.env.APP_ENV === 'dev') console.log(data);
......@@ -133,7 +133,7 @@
/**根据 category 搜索游戏
* @param {string} category category
*/
function searchCategory(category) {
export function searchCategory(category) {
if (process.env.APP_ENV === 'dev') console.log(category);
createFetch(searchCategoryRequest(category), data => {
if (process.env.APP_ENV === 'dev') console.log(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment