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
+4 -1
View File
@@ -153,7 +153,10 @@ export const createUpdateCenterStore = (): UpdateCenterStore => {
loading.value = true;
try {
// 先运行系统更新(aptss update / apm update),确保本地包信息最新
await window.ipcRenderer.invoke("update-center-run-system-update", storeFilter);
await window.ipcRenderer.invoke(
"update-center-run-system-update",
storeFilter,
);
const nextSnapshot = await window.updateCenter.refresh(storeFilter);
applySnapshot(nextSnapshot);
} finally {