diff --git a/main.js b/main.js index 70f4179..40c030d 100644 --- a/main.js +++ b/main.js @@ -22403,8 +22403,8 @@ const workDayData = { }); const buttonNext = createQueryButton('查下月', () => navigateMonth(-1)); const buttonPrev = createQueryButton('查上月', () => navigateMonth(1)); - const button2 = createQueryButton('查上上月', () => getCustomMonthRange(2)); - const button3 = createQueryButton('查上上上月', () => getCustomMonthRange(3)); + const button2 = createQueryButton('查上上月', () => navigateMonth(2)); + const button3 = createQueryButton('查上上上月', () => navigateMonth(3)); // 获取要将按钮添加到其中的容器 let container = document.getElementById('seclevelmenu'); diff --git a/main.template.js b/main.template.js index 8159c84..b085632 100644 --- a/main.template.js +++ b/main.template.js @@ -480,8 +480,8 @@ }); const buttonNext = createQueryButton('查下月', () => navigateMonth(-1)); const buttonPrev = createQueryButton('查上月', () => navigateMonth(1)); - const button2 = createQueryButton('查上上月', () => getCustomMonthRange(2)); - const button3 = createQueryButton('查上上上月', () => getCustomMonthRange(3)); + const button2 = createQueryButton('查上上月', () => navigateMonth(2)); + const button3 = createQueryButton('查上上上月', () => navigateMonth(3)); // 获取要将按钮添加到其中的容器 let container = document.getElementById('seclevelmenu');