fix #418
This commit is contained in:
parent
e282ac3876
commit
f3ba137a93
1 changed files with 3 additions and 1 deletions
|
@ -296,7 +296,9 @@
|
|||
},
|
||||
changePanelDate(panel, type, increment, updateOtherPanel = true){
|
||||
const current = new Date(this[`${panel}PanelDate`]);
|
||||
current[`set${type}`](current[`get${type}`]() + increment);
|
||||
// fix https://github.com/view-design/ViewUI/issues/418
|
||||
// 强行把左视图日期设置为1号
|
||||
current[`set${type}`](current[`get${type}`]() + increment, 1);
|
||||
this[`${panel}PanelDate`] = current;
|
||||
|
||||
if (!updateOtherPanel) return;
|
||||
|
|
Loading…
Add table
Reference in a new issue