refactor: 重写filter页面 更新为search
This commit is contained in:
@@ -23,7 +23,7 @@ const { data: tags } =
|
||||
categories.map((category) => (
|
||||
<li>
|
||||
<a
|
||||
href={`/filter?type=category&code=${encodeURIComponent(category.code)}`}
|
||||
href={`/search?c=${encodeURIComponent(category.code)}`}
|
||||
title={`${category.name} · ${category.post_count} 篇`}
|
||||
>
|
||||
{category.name}
|
||||
@@ -45,7 +45,7 @@ const { data: tags } =
|
||||
tags.map((tag) => (
|
||||
<a
|
||||
class="tag"
|
||||
href={`/filter?type=tag&code=${encodeURIComponent(tag.code)}`}
|
||||
href={`/search?t=${encodeURIComponent(tag.code)}`}
|
||||
>
|
||||
{tag.name}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user