修改接口

master
夜笙歌 10 months ago
parent 690af93045
commit 5955783930

@ -128,11 +128,11 @@ export default {
let mm = date.getMinutes().toString().length === 1 ? ('0' + date.getMinutes()) : date.getMinutes() let mm = date.getMinutes().toString().length === 1 ? ('0' + date.getMinutes()) : date.getMinutes()
let ss = date.getSeconds().toString().length === 1 ? ('0' + date.getSeconds()) : date.getSeconds() let ss = date.getSeconds().toString().length === 1 ? ('0' + date.getSeconds()) : date.getSeconds()
let week = date.getDay() let week = date.getDay()
let weekArr = ['一','二','三','四','五','六','日'] let weekArr = ['日','一','二','三','四','五','六']
this.date = `${YYYY} - ${MM} - ${dd}` this.date = `${YYYY} - ${MM} - ${dd}`
this.time = `${HH} : ${mm} : ${ss}` this.time = `${HH} : ${mm} : ${ss}`
this.time1 = `${YYYY}${MM}${dd}日 星期${weekArr[week -1 ]} ${HH} : ${mm} : ${ss}` this.time1 = `${YYYY}${MM}${dd}日 星期${weekArr[week]} ${HH} : ${mm} : ${ss}`
this.time1 = `${YYYY}${MM}${dd}日 星期${weekArr[week -1 ]} ${HH} : ${mm} : ${ss}` this.time1 = `${YYYY}${MM}${dd}日 星期${weekArr[week]} ${HH} : ${mm} : ${ss}`
} }
getDate() getDate()
getDateIntervalFun = setInterval(getDate, 1000) getDateIntervalFun = setInterval(getDate, 1000)

Loading…
Cancel
Save