mirror of
https://github.com/yuruotong1/autoMate.git
synced 2025-12-26 05:16:21 +08:00
🐛 修复(Category/index.tsx): 添加未分类导航链接
🐛 修复(ContentListLoader.ts): 修复参数判断条件
This commit is contained in:
parent
65ea1214d4
commit
9e784171b2
@ -15,6 +15,12 @@ export const Category = () => {
|
||||
<div className="truncate">所有内容</div>
|
||||
</div>
|
||||
</NavLink>
|
||||
<NavLink to={`/config/category/contentList/0`} end className="font-blod mb-1">
|
||||
<div className="flex items-center gap-1">
|
||||
<AllApplication theme="outline" size="12" strokeWidth={3}/>
|
||||
<div className="truncate">未分类</div>
|
||||
</div>
|
||||
</NavLink>
|
||||
{categories.map((category) => (
|
||||
<NavLink
|
||||
to={`/config/category/contentList/${category.id}`}
|
||||
|
||||
@ -7,7 +7,7 @@ export default async({params, request}) => {
|
||||
console.log("hello")
|
||||
return window.api.sql(sql, "findAll", {searchWord: `%${searchWord}%`})
|
||||
}
|
||||
if (params.cid) {
|
||||
if (params.cid != undefined) {
|
||||
sql += ` where category_id=${params.cid}`
|
||||
}
|
||||
sql += " order by id desc"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user