This commit is contained in:
梁灏 2021-05-24 18:23:01 +08:00
parent e282ac3876
commit f3ba137a93

View file

@ -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;