Skip to content

Commit

Permalink
fix month field in filename
Browse files Browse the repository at this point in the history
ignore dist/ folder
  • Loading branch information
jwenjian committed Aug 21, 2019
1 parent c745c79 commit 582d766
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 59,6 @@ typings/

# next.js build output
.next

# vue.js build output
dist/
2 changes: 1 addition & 1 deletion src/dialogs/ResultDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 110,7 @@ export default {
let now = new Date()
let filename = `awesome-qrcode_${now.getFullYear()}_${now.getMonth()}_${now.getDate()}_${now.getHours()}_${now.getMinutes()}_${now.getSeconds()}${fileSuffix}`
let filename = `awesome-qrcode_${now.getFullYear()}_${now.getMonth() 1}_${now.getDate()}_${now.getHours()}_${now.getMinutes()}_${now.getSeconds()}${fileSuffix}`
this.saveAsImg(filename, this.qrcode.url)
},
Expand Down

0 comments on commit 582d766

Please sign in to comment.