Browse Source

日期组件BUG修改

master
王健 4 years ago
parent
commit
6b3a214c1f
  1. 2
      pages/calendar/calendar.js

2
pages/calendar/calendar.js

@ -75,7 +75,7 @@ Page({
let timer = new Date()
let year = timer.getFullYear()
let month = timer.getMonth() + 1
month = month.length > 1 ? month : '0' + month
month = month > 9 ? month : '0' + month
let date = `${year}-${month}`
if (date !== this.data.calendarDisplayTime) {
this.setData({

Loading…
Cancel
Save