ปีเริ่มต้นตามที่เลือก
This commit is contained in:
parent
95ebd013e4
commit
ac167bf16a
1 changed files with 7 additions and 1 deletions
|
|
@ -99,7 +99,13 @@ const updateYear = async (e: number) => {
|
|||
* ฟังก์ชันปุ่มเพิ่มวันหยุดแบบเลือกวันได้
|
||||
*/
|
||||
const addCalendar = () => {
|
||||
dateAdd.value = [new Date(), new Date()];
|
||||
const today = new Date();
|
||||
const { year } = dateMonth.value;
|
||||
|
||||
dateAdd.value = [
|
||||
new Date(year, today.getMonth(), today.getDate()),
|
||||
new Date(year, today.getMonth(), today.getDate()),
|
||||
];
|
||||
name.value = "";
|
||||
category.value = "all";
|
||||
isSpecial.value = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue