@pandablessing/dsh-user-sync 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +8 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -613,7 +613,11 @@ export function apply(ctx) {
|
|
|
613
613
|
catch {
|
|
614
614
|
// 无 body(面板首次点击)时按未确认处理
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
const result = (await sync.upload({ force }));
|
|
617
|
+
// 上传成功说明远端已与本机一致:立刻重算检查结论,底部状态行不再显示过期的「发现更新」
|
|
618
|
+
if (result.ok)
|
|
619
|
+
void scheduler.runOnce();
|
|
620
|
+
return json(result);
|
|
617
621
|
},
|
|
618
622
|
},
|
|
619
623
|
{
|
|
@@ -708,6 +712,9 @@ export function apply(ctx) {
|
|
|
708
712
|
result.installError = error?.message ?? String(error);
|
|
709
713
|
}
|
|
710
714
|
}
|
|
715
|
+
// 应用成功后远端与本机一致:重算检查结论
|
|
716
|
+
if (result.ok)
|
|
717
|
+
void scheduler.runOnce();
|
|
711
718
|
return json(result);
|
|
712
719
|
},
|
|
713
720
|
},
|