chore(cp活动): 方法名称调整
This commit is contained in:
parent
beefcc23d3
commit
d65e8b8e76
@ -321,7 +321,7 @@ const MSeconds = ref(0)
|
|||||||
let monthlyCountdownTimer = null // 月度倒计时定时器
|
let monthlyCountdownTimer = null // 月度倒计时定时器
|
||||||
|
|
||||||
// 获取对应的时间戳
|
// 获取对应的时间戳
|
||||||
const getNextMondayInBeijing = () => {
|
const getNextWeekInBeijing = () => {
|
||||||
const now = new Date()
|
const now = new Date()
|
||||||
const targetDate = new Date(now.getTime()) // 创建一个基于当前时间的新日期对象
|
const targetDate = new Date(now.getTime()) // 创建一个基于当前时间的新日期对象
|
||||||
|
|
||||||
@ -354,7 +354,7 @@ const getNextMondayInBeijing = () => {
|
|||||||
return targetDate.getTime()
|
return targetDate.getTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
const targetTime = ref(getNextMondayInBeijing()) // 闭包保存目标时间 (核心修正)
|
const targetTime = ref(getNextWeekInBeijing()) // 闭包保存目标时间 (核心修正)
|
||||||
|
|
||||||
// 格式化时间
|
// 格式化时间
|
||||||
const formatTime = (value) => {
|
const formatTime = (value) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user