diff --git a/config/app.php b/config/app.php index f572b646..987bbb27 100644 --- a/config/app.php +++ b/config/app.php @@ -67,7 +67,7 @@ return [ | */ - 'timezone' => 'UTC', + 'timezone' => 'PRC', /* |-------------------------------------------------------------------------- diff --git a/resources/assets/js/pages/manage/calendar.vue b/resources/assets/js/pages/manage/calendar.vue index f47f0668..5d0a8461 100644 --- a/resources/assets/js/pages/manage/calendar.vue +++ b/resources/assets/js/pages/manage/calendar.vue @@ -97,17 +97,20 @@ export default { this.getTask(time); }, - projectList(data) { - const list = data.map((project) => { - return { - id: String(project.id), - name: project.name, + projectList: { + handler(data) { + const list = data.map((project) => { + return { + id: String(project.id), + name: project.name, + } + }); + if (JSON.stringify(list) != JSON.stringify(this.calendarList)) { + this.calendarList = list; } - }); - if (JSON.stringify(list) != JSON.stringify(this.calendarList)) { - this.calendarList = list; - } - } + }, + immediate: true, + }, }, methods: {