Merge pull request #6131 from msidolphin/bug#6129

fix#6129
This commit is contained in:
debugIsFalse 2019-10-09 13:15:39 +08:00 committed by GitHub
commit 716b35d41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,11 @@
},
changePanelDate(panel, type, increment, updateOtherPanel = true){
const current = new Date(this[`${panel}PanelDate`]);
current[`set${type}`](current[`get${type}`]() + increment);
if (panel === 'left') {
current[`set${type}`](current[`get${type}`](), 0);
} else {
current[`set${type}`](current[`get${type}`]() + increment);
}
this[`${panel}PanelDate`] = current;
if (!updateOtherPanel) return;