feat: 支持在后台文章管理界面中使用动态分类别名
continuous-integration/drone/push Build is passing

This commit is contained in:
seahi committed 2026-09-16 12:34:13 +08:00
1 parent f202cb895e
commit 8ee8656c35
3 files changed
+10 -6

No files matched your search

+6 -2
View File
@@ -79,7 +79,7 @@
</th>
<th>ID</th>
<th>标题</th>
<th>分类</th>
<th>{$page.data.aliases?.category || '分类'}</th>
<th>{$page.data.aliases?.series || '系列'}</th>
<th>别名</th>
<th>发布时间</th>
@@ -105,7 +105,11 @@
<ExternalLink size={16} aria-hidden="true" />
</a>
</td>
<td><span class="badge">{post.category || '未分类'}</span></td>
<td
><span class="badge"
>{post.category || `未${$page.data.aliases?.category || '分类'}`}</span
></td
>
<td>{post.series || '—'}</td>
<td><SlugBadge slug={post.slug} /></td>
<td>{post.dateStr}</td>
+2 -2
View File
@@ -207,10 +207,10 @@
</div>
<div class="sidebar-box">
<h3>分类</h3>
<h3>{$page.data.aliases?.category || '分类'}</h3>
<SelectDropdown
name="category_id"
label="分类"
label={$page.data.aliases?.category || '分类'}
options={data.categories.map((category) => ({
value: category.id,
label: category.name
+2 -2
View File
@@ -238,10 +238,10 @@
</div>
<div class="sidebar-box">
<h3>分类</h3>
<h3>{$page.data.aliases?.category || '分类'}</h3>
<SelectDropdown
name="category_id"
label="分类"
label={$page.data.aliases?.category || '分类'}
options={data.categories.map((category) => ({
value: category.id,
label: category.name