mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-23 20:44:58 +08:00
setDate方法放到setWeek中
This commit is contained in:
parent
b7fb92e927
commit
83a4416bbb
|
@ -74,7 +74,6 @@ const record = ref([] as any)
|
|||
const currentDate = ref<Date>(new Date())
|
||||
|
||||
setWeek()
|
||||
setDate(currentDate.value)
|
||||
|
||||
function formatDate(date: any) {
|
||||
return monthEn[new Date(date).getMonth()] + '月 ' + new Date(date).getFullYear()
|
||||
|
@ -110,11 +109,13 @@ function setWeek(type?: 'up' | 'down') {
|
|||
content: '测试测试'
|
||||
}
|
||||
]
|
||||
// setTimeout(() => {
|
||||
for (let i = 0; i < 7; i++) {
|
||||
week.value.push(getFirstDayOfWeek(date, i + 1))
|
||||
}
|
||||
// }, 0)
|
||||
// 定时器等待动画执行
|
||||
setTimeout(() => {
|
||||
for (let i = 0; i < 7; i++) {
|
||||
week.value.push(getFirstDayOfWeek(date, i + 1))
|
||||
}
|
||||
}, 0)
|
||||
setDate(currentDate.value)
|
||||
}
|
||||
|
||||
const handleOpen = () => {
|
||||
|
@ -243,6 +244,7 @@ const saveData = (e: any) => {
|
|||
color: white;
|
||||
|
||||
span {
|
||||
color: white;
|
||||
border-color: $main-color;
|
||||
background: $main-color;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user