Commit 94699344 authored by 李维's avatar 李维

Bug fix

parent 1ce96473
......@@ -216,7 +216,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (let i = 1; i < 8; i++) {
const index = i;
const value = this.learntimes[i - 1];
date.setDate(date.getDate() - (7 - date.getDay()) + index);
let day = date.getDay()==0 ? 7 : date.getDay();
date.setDate(date.getDate() - day + index);
const xNode = cc.find(`dp${index}/date${index}`, linebg);
const dateStr = date["pattern"]("M月d日");
if (dateStr.split("")[0] != monthNum) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment