提交 f49a4e99 authored 作者: pengxiaohui's avatar pengxiaohui

fix: 修复周期会议每月跨年显示不正确的bug [2146]

上级 d1663d49
......@@ -53,6 +53,7 @@ export default {
},
methods: {
handlleSelect(path) {
console.log(this.$router)
this.$router.push(path)
}
}
......
......@@ -490,6 +490,7 @@ export default {
this.form.endDate = val
this.startTimeChange()
this.dateChange()
this.recurringTypeChange()
},
startTimeChange() {
const { startDate, endDate } = this.form
......
......@@ -133,7 +133,7 @@ function getDateByMouths(startDate, times) {
// startDate.setMonth(month + times)
if ((month + times - 1) / 12 > 1) {
month = (month + times - 1) % 12
year += Math.floor((month + times - 1) / 12)
year++
} else {
month = month + times - 1
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论