Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from JasonkayZK/fix/date-check
Browse files Browse the repository at this point in the history
fixed: date-check
  • Loading branch information
JasonkayZK authored Nov 8, 2020
2 parents 17257d4 + 1424969 commit 210ae26
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/Crawler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,16 @@ export default {
methods: {
onSubmit() {
this.downloaded = 0;
console.log(this.form.userId)
// Check valid
if (this.form.date1.getTime() > this.form.date2.getTime()) {
let temp = this.form.date1;
this.form.date1 = this.form.date2;
this.form.date2 = temp;
}
this.form.date2.setHours(23, 59, 59, 999);
ipcRenderer.send('crawl-list', this.form.userId, this.form.date1, this.form.date2)
if (!this.showCrawlList) {
this.showCrawlList = true
Expand Down

0 comments on commit 210ae26

Please sign in to comment.