diff --git a/src/components/ToolBar.vue b/src/components/ToolBar.vue index ece27a0..b32a181 100644 --- a/src/components/ToolBar.vue +++ b/src/components/ToolBar.vue @@ -30,7 +30,7 @@ const filterYear = ref(stores.year) //ปีงบประมาณ const titleName = ref('เพิ่มรายการลงเวลากรณีพิเศษ') //หัว popup const dateMonth = ref({ month: new Date().getMonth(), - year: stores.year, + year: stores.year ? stores.year:new Date().getFullYear(), }) const modalPopup = ref(false) // modal เพิ่มรายการลงเวลากรณีพิเศษ