diff --git a/download.js b/download.js index bf34804..6393f45 100644 --- a/download.js +++ b/download.js @@ -75,9 +75,9 @@ class Download extends Page { if (!isExist) return fileName; const extname = path.extname(fileName); const basename = path.basename(fileName, extname); - + let count = 0; - + while (isExist) { isExist = this.isFileExist(`${basename}(${++count})${extname}`); } @@ -154,4 +154,4 @@ class Download extends Page { } } -module.exports = new Download(); \ No newline at end of file +module.exports = new Download(); diff --git a/electron-builder.js b/electron-builder.js index a8dda56..051796f 100644 --- a/electron-builder.js +++ b/electron-builder.js @@ -16,7 +16,9 @@ const output = process.platform === 'darwin' ? `package-${process.env.CHANNEL}` try { rimraf.sync(output); -} catch (e) {} +} catch (e) { + console.log(e) +} builder.build({ config: { diff --git a/fe/modules/index/Index.vue b/fe/modules/index/Index.vue index d09601e..621384c 100644 --- a/fe/modules/index/Index.vue +++ b/fe/modules/index/Index.vue @@ -1,34 +1,5 @@