Skip to content

Commit c861b83

Browse files
authored
fix: 自动更新时,切换页面会重新下载文件 (#339)
1 parent 6b87e21 commit c861b83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components/services/auto-upgrade.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ angular.module("web").factory("autoUpgradeSvs", [
3636
var job;
3737

3838
function start() {
39-
if (job) job.start();
39+
if (job && job.status !== "running") {
40+
job.start();
41+
}
4042
}
4143

4244
function getReleaseNote(version, lang, fn) {

0 commit comments

Comments
 (0)