style: 统一代码格式与字符串引号风格

1.  替换单引号为双引号统一字符串格式
2.  拆分过长的函数调用与条件判断行提升可读性
3.  简化多行console.log调用为单行格式
4.  为侧边栏添加条目计数标签展示功能
This commit is contained in:
2026-07-14 13:59:55 +08:00
parent 750e1d89e4
commit 7420466d92
7 changed files with 100 additions and 56 deletions
+5
View File
@@ -96,6 +96,11 @@
<i v-else class="fas fa-folder"></i>
</span>
<span class="sidebar-tab-label">{{ entry.name }}</span>
<span
v-if="entryCounts[entry.id]"
class="ml-auto rounded-full bg-slate-100 px-2 py-0.5 text-xs font-semibold text-slate-500 dark:bg-slate-800/70 dark:text-slate-300"
>{{ entryCounts[entry.id] }}</span
>
</button>
</div>