浏览代码

fix(nsis-compat-tester): fix progress

evshiron 7 年之前
父节点
当前提交
9e09d85e80
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/nsis-compat-tester/main.html

+ 1 - 1
packages/nsis-compat-tester/main.html

@@ -70,7 +70,7 @@ const app = new Vue({
                             this.progress = 0;
 
                             const handleDownloadProgress = (state) => {
-                                this.progress = state.percentage;
+                                this.progress = state.percentage || 0;
                             };
 
                             updater.onDownloadProgress.subscribe(handleDownloadProgress);