mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-09-21 06:00:11 +08:00
style: 统一代码格式与字符串引号风格
1. 替换单引号为双引号统一字符串格式 2. 拆分过长的函数调用与条件判断行提升可读性 3. 简化多行console.log调用为单行格式 4. 为侧边栏添加条目计数标签展示功能
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user