Commit e931672f by 姜雷

Merge branch 'develop' into test

parents b667dc3b 0740b84b
......@@ -88,10 +88,13 @@ export default {
},
computed: {
day() {
let sed =
new Date(this.selected.endDate) - new Date(this.selected.beginDate);
let sed = Math.ceil(
(new Date(this.selected.endDate).getTime() / 1000 / 60 / 60 -
new Date(this.selected.beginDate).getTime() / 1000 / 60 / 60) /
24
);
return Math.ceil(sed / 1000 / 60 / 60 / 24);
return sed;
},
},
created() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment